mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 02:05:39 +00:00
extracting all the cross-platform setup of HttpMessageHandler into
a less awful class
This commit is contained in:
@@ -14,7 +14,7 @@ public class HttpClientAdapterTests
|
||||
[IntegrationTest]
|
||||
public async Task CanDownloadImage()
|
||||
{
|
||||
var httpClient = new HttpClientAdapter();
|
||||
var httpClient = new HttpClientAdapter(HttpMessageHandlerFactory.GetHandler);
|
||||
var request = new Request
|
||||
{
|
||||
BaseAddress = new Uri("https://github.global.ssl.fastly.net/", UriKind.Absolute),
|
||||
@@ -36,7 +36,7 @@ public class HttpClientAdapterTests
|
||||
[IntegrationTest]
|
||||
public async Task CanCancelARequest()
|
||||
{
|
||||
var httpClient = new HttpClientAdapter();
|
||||
var httpClient = new HttpClientAdapter(HttpMessageHandlerFactory.GetHandler);
|
||||
var request = new Request
|
||||
{
|
||||
BaseAddress = new Uri("https://github.global.ssl.fastly.net/", UriKind.Absolute),
|
||||
|
||||
Reference in New Issue
Block a user