Skip to content

Commit 74c18c8

Browse files
Remove unused method
Remove unused method from HttpServerFixture.
1 parent 1493d95 commit 74c18c8

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/TodoApp.Tests/HttpServerFixture.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,6 @@ async Task IAsyncLifetime.DisposeAsync()
3636
}
3737
}
3838

39-
public HttpClient CreateHttpClient()
40-
{
41-
var handler = new HttpClientHandler()
42-
{
43-
AllowAutoRedirect = ClientOptions.AllowAutoRedirect,
44-
CheckCertificateRevocationList = true,
45-
MaxAutomaticRedirections = ClientOptions.MaxAutomaticRedirections,
46-
UseCookies = ClientOptions.HandleCookies,
47-
};
48-
49-
try
50-
{
51-
var client = new HttpClient(handler, disposeHandler: true);
52-
53-
ConfigureClient(client);
54-
55-
client.BaseAddress = ClientOptions.BaseAddress;
56-
57-
return client;
58-
}
59-
catch (Exception)
60-
{
61-
handler.Dispose();
62-
throw;
63-
}
64-
}
65-
6639
protected override void ConfigureWebHost(IWebHostBuilder builder)
6740
{
6841
base.ConfigureWebHost(builder);

0 commit comments

Comments
 (0)