Skip to content

Commit

Permalink
Make ApiEndpoint.CreateContent() and ApiEndpoint.CreateRequest() publ…
Browse files Browse the repository at this point in the history
…ic to allow testing (#36)
  • Loading branch information
evgenyvalavin authored Jun 9, 2023
1 parent eec9461 commit 7a2aef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Arbus.Network/Abstractions/ApiEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class ApiEndpoint

public CancellationToken? CancellationToken { get; set; }

protected internal virtual HttpRequestMessage CreateRequest(Uri? baseUri)
public virtual HttpRequestMessage CreateRequest(Uri? baseUri)
{
var requestUri = CreateRequestUri(baseUri);

Expand All @@ -41,7 +41,7 @@ private Uri CreateRequestUri(Uri? baseUrl)
return uri;
}

protected internal virtual HttpContent? CreateContent() => default;
public virtual HttpContent? CreateContent() => default;

protected virtual void AddRequestHeaders(HttpRequestHeaders headers)
{
Expand Down

0 comments on commit 7a2aef9

Please sign in to comment.