Updates per blog post
This commit is contained in:
Родитель
f8cdf8fa32
Коммит
fa679a6d47
|
@ -9,7 +9,6 @@ namespace UnitTestHttpRequest
|
|||
{
|
||||
internal class JsonContent : HttpContent
|
||||
{
|
||||
|
||||
private readonly MemoryStream _stream = new MemoryStream();
|
||||
public JsonContent(object value)
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace UnitTestHttpRequest
|
|||
_builder = () => new HttpClient();
|
||||
}
|
||||
|
||||
public SampleHttpClient(string instanceUrl, string apiVersion, string accessToken, Func<HttpClient> builder )
|
||||
public SampleHttpClient(string instanceUrl, string apiVersion, string accessToken, Func<HttpClient> builder)
|
||||
{
|
||||
_instanceUrl = instanceUrl;
|
||||
_apiVersion = apiVersion;
|
||||
|
|
|
@ -26,9 +26,9 @@ namespace UnitTestHttpRequest
|
|||
|
||||
Func<HttpClient> builder = () => client;
|
||||
|
||||
var toolkitHttpClient = new SampleHttpClient("http://localhost:1899", "v1", "accessToken", builder);
|
||||
var sampleHttpClient = new SampleHttpClient("http://localhost:1899", "v1", "accessToken", builder);
|
||||
|
||||
await toolkitHttpClient.HttpGet<object>("querystring");
|
||||
}
|
||||
await sampleHttpClient.HttpGet<object>("querystring");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче