598 references to CreateClient
Diagnostics.EFCore.FunctionalTests (17)
DatabaseErrorPageMiddlewareTest.cs (11)
43HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/"); 81await server.CreateClient().GetAsync("http://localhost/")); 107await server.CreateClient().GetAsync("http://localhost/")); 139HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/"); 200HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/"); 239HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/"); 279var client = server.CreateClient(); 362HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/"); 400await server.CreateClient().GetAsync("http://localhost/"); 448await server.CreateClient().GetAsync("http://localhost/"); 485HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/");
MigrationsEndPointMiddlewareTest.cs (6)
40HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/"); 125HttpResponseMessage response = await server.CreateClient() 161var response = await server.CreateClient().PostAsync("http://localhost" + MigrationsEndPointOptions.DefaultPath, formData); 193var response = await server.CreateClient().PostAsync("http://localhost" + MigrationsEndPointOptions.DefaultPath, formData); 222var response = await server.CreateClient().PostAsync("http://localhost" + MigrationsEndPointOptions.DefaultPath, formData); 262await server.CreateClient().PostAsync("http://localhost" + MigrationsEndPointOptions.DefaultPath, formData));
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
36Client = _server.CreateClient();
Microsoft.AspNetCore.Authentication.Test (73)
AuthenticationMiddlewareTests.cs (1)
56var response = await server.CreateClient().GetAsync("http://example.com/");
CertificateTests.cs (31)
57var response = await server.CreateClient().GetAsync("https://example.com/"); 73var response = await server.CreateClient().GetAsync("https://example.com/"); 88var response = await server.CreateClient().GetAsync("https://example.com/"); 104var response = await server.CreateClient().GetAsync("https://example.com/"); 120var response = await server.CreateClient().GetAsync("https://example.com/"); 137var response = await server.CreateClient().GetAsync("https://example.com/"); 154var response = await server.CreateClient().GetAsync("https://example.com/"); 172var response = await server.CreateClient().GetAsync("https://example.com/"); 189var response = await server.CreateClient().GetAsync("https://example.com/"); 207var response = await server.CreateClient().GetAsync("https://example.com/"); 224var response = await server.CreateClient().GetAsync("https://example.com/"); 240var response = await server.CreateClient().GetAsync("https://example.com/"); 257var response = await server.CreateClient().GetAsync("https://example.com/"); 271var response = await server.CreateClient().GetAsync("https://example.com/"); 285var response = await server.CreateClient().GetAsync("https://example.com/"); 308var response = await server.CreateClient().GetAsync("https://example.com/"); 326var response = await server.CreateClient().GetAsync("https://example.com/"); 343var response = await server.CreateClient().GetAsync("https://example.com/"); 361var response = await server.CreateClient().GetAsync("https://example.com/"); 378var response = await server.CreateClient().GetAsync("https://example.com/"); 394var client = server.CreateClient(); 411var client = server.CreateClient(); 430var client = server.CreateClient(); 448var client = server.CreateClient(); 465var response = await server.CreateClient().GetAsync("https://example.com/"); 596var response = await server.CreateClient().GetAsync("https://example.com/"); 617response = await server.CreateClient().GetAsync("https://example.com/"); 666var response = await server.CreateClient().GetAsync("https://example.com/"); 723var response = await server.CreateClient().GetAsync("https://example.com/"); 744response = await server.CreateClient().GetAsync("https://example.com/"); 766response = await server.CreateClient().GetAsync("https://example.com/");
CookieTests.cs (2)
40var response = await server.CreateClient().GetAsync("http://example.com/normal"); 1913Response = await server.CreateClient().SendAsync(request),
DynamicSchemeTests.cs (6)
31var response = await server.CreateClient().GetAsync("http://example.com/add/One"); 43response = await server.CreateClient().GetAsync("http://example.com/add/Two"); 66var response = await server.CreateClient().GetAsync("http://example.com/add/One"); 72response = await server.CreateClient().GetAsync("http://example.com/add/Two"); 78response = await server.CreateClient().GetAsync("http://example.com/remove/Two"); 85response = await server.CreateClient().GetAsync("http://example.com/remove/One");
JwtBearerTests.cs (2)
909var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty)); 1259Response = await server.CreateClient().SendAsync(request),
JwtBearerTests_Handler.cs (2)
854var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty)); 1326Response = await server.CreateClient().SendAsync(request),
OpenIdConnect\OpenIdConnectEventTests.cs (9)
966var client = server.CreateClient(); 993var client = server.CreateClient(); 1010var client = server.CreateClient(); 1036var client = server.CreateClient(); 1062var client = server.CreateClient(); 1079var client = server.CreateClient(); 1102var client = server.CreateClient(); 1129var client = server.CreateClient(); 1310var client = server.CreateClient();
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (9)
966var client = server.CreateClient(); 993var client = server.CreateClient(); 1010var client = server.CreateClient(); 1036var client = server.CreateClient(); 1062var client = server.CreateClient(); 1079var client = server.CreateClient(); 1102var client = server.CreateClient(); 1129var client = server.CreateClient(); 1308var client = server.CreateClient();
OpenIdConnect\TestServerExtensions.cs (1)
32Response = await server.CreateClient().SendAsync(request),
TestExtensions.cs (1)
28Response = await server.CreateClient().SendAsync(request),
TwitterTests.cs (3)
220var client = server.CreateClient(); 270var client = server.CreateClient(); 377var client = server.CreateClient();
WsFederation\WsFederationTest.cs (3)
62var httpClient = server.CreateClient(); 233var result = await server.CreateClient().GetAsync(""); 362return server.CreateClient();
WsFederation\WsFederationTest_Handler.cs (3)
60var httpClient = server.CreateClient(); 231var result = await server.CreateClient().GetAsync(""); 358return server.CreateClient();
Microsoft.AspNetCore.CookiePolicy.Test (1)
TestExtensions.cs (1)
25Response = await server.CreateClient().SendAsync(request),
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (31)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (2)
74var client = server.CreateClient(); 119var client = server.CreateClient();
HealthCheckMiddlewareSampleTest.cs (4)
27var client = server.CreateClient(); 49var client = server.CreateClient(); 72var client = server.CreateClient(); 94var client = server.CreateClient();
HealthCheckMiddlewareTests.cs (25)
63var client = server.CreateClient(); 90var client = server.CreateClient(); 117var client = server.CreateClient(); 147var client = server.CreateClient(); 180var client = server.CreateClient(); 213var client = server.CreateClient(); 246var client = server.CreateClient(); 279var client = server.CreateClient(); 325var client = server.CreateClient(); 362var client = server.CreateClient(); 397var client = server.CreateClient(); 426var client = server.CreateClient(); 461var client = server.CreateClient(); 500var client = server.CreateClient(); 530var client = server.CreateClient(); 560var client = server.CreateClient(); 588var client = server.CreateClient(); 618var client = server.CreateClient(); 653var client = server.CreateClient(); 690var client = server.CreateClient(); 728var client = server.CreateClient(); 766var client = server.CreateClient(); 804var client = server.CreateClient(); 846var client = server.CreateClient(); 890var client = server.CreateClient();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\ChecpointAcceptanceTests.cs (1)
127using var response = await host.GetTestServer().CreateClient().GetAsync("/Path");
Microsoft.AspNetCore.Diagnostics.Tests (44)
DeveloperExceptionPageMiddlewareTest.cs (13)
66var response = await server.CreateClient().SendAsync(request); 119var response = await server.CreateClient().SendAsync(request); 178var response = await server.CreateClient().SendAsync(request); 220await server.CreateClient().GetAsync("/path"); 253var client = server.CreateClient(); 290var response = await server.CreateClient().GetAsync("/path"); 328var client = server.CreateClient(); 363var response = await server.CreateClient().GetAsync("/path"); 400var response = await server.CreateClient().GetAsync("/path"); 436var response = await server.CreateClient().GetAsync("/path"); 474var response = await server.CreateClient().GetAsync("/path"); 564await server.CreateClient().GetAsync("/path"); 606var response = await server.CreateClient().GetAsync("/path");
ExceptionHandlerMiddlewareTest.cs (3)
72var response = await server.CreateClient().SendAsync(request); 338var response = await server.CreateClient().GetAsync("/path"); 405var response = await server.CreateClient().GetAsync("/path");
ExceptionHandlerTest.cs (20)
60var client = server.CreateClient(); 115var client = server.CreateClient(); 181var client = server.CreateClient(); 237var client = server.CreateClient(); 292var client = server.CreateClient(); 364var client = server.CreateClient(); 434var client = server.CreateClient(); 492await server.CreateClient().GetAsync(string.Empty); 598var client = server.CreateClient(); 647var client = server.CreateClient(); 688var client = server.CreateClient(); 727var client = server.CreateClient(); 768var client = server.CreateClient(); 819var client = server.CreateClient(); 873var client = server.CreateClient(); 925var client = server.CreateClient(); 983var client = server.CreateClient(); 1028var response = await server.CreateClient().GetAsync("/path"); 1098var response = await server.CreateClient().GetAsync("/path"); 1161await Assert.ThrowsAsync<HttpRequestException>(async () => await server.CreateClient().GetAsync("/path"));
StatusCodeMiddlewareTest.cs (8)
60var client = server.CreateClient(); 126var client = server.CreateClient(); 188var client = server.CreateClient(); 243var client = server.CreateClient(); 277var client = server.CreateClient(); 311var client = server.CreateClient(); 348var client = server.CreateClient(); 386var client = server.CreateClient();
Microsoft.AspNetCore.HeaderPropagation.Tests (4)
HeaderPropagationIntegrationTest.cs (4)
59var client = server.CreateClient(); 107var client = server.CreateClient(); 133var client = server.CreateClient(); 180var client = server.CreateClient();
Microsoft.AspNetCore.HostFiltering.Tests (2)
HostFilteringMiddlewareTests.cs (2)
74var response = await server.CreateClient().GetAsync("/"); 117var response = await server.CreateClient().GetAsync("/");
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UsePathBaseExtensionsTests.cs (3)
161var response = await server.CreateClient().GetStringAsync("/base/path"); 183var response = await server.CreateClient().GetStringAsync("/base/path"); 203var response = await server.CreateClient().GetStringAsync("/base/path");
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1730var client = server.CreateClient(); 1745var client = server.CreateClient(); 1760var client = server.CreateClient(); 1775var client = server.CreateClient(); 1801var client = server.CreateClient(); 1820var client = server.CreateClient(); 1835var client = server.CreateClient(); 1850var client = server.CreateClient(); 1865var client = server.CreateClient(); 1891var client = server.CreateClient(); 1937var client = server.CreateClient();
Microsoft.AspNetCore.HttpOverrides.Tests (6)
HttpMethodOverrideMiddlewareTest.cs (6)
41await server.CreateClient().SendAsync(req); 71await server.CreateClient().SendAsync(req); 101await server.CreateClient().SendAsync(req); 139await server.CreateClient().SendAsync(req); 176await server.CreateClient().SendAsync(req); 214await server.CreateClient().SendAsync(req);
Microsoft.AspNetCore.HttpsPolicy.Tests (19)
HstsMiddlewareTests.cs (8)
63var client = server.CreateClient(); 110var client = server.CreateClient(); 156var client = server.CreateClient(); 201var client = server.CreateClient(); 256var client = server.CreateClient(); 311var client = server.CreateClient(); 358var client = server.CreateClient(); 404var client = server.CreateClient();
HttpsPolicyTests.cs (2)
63var client = server.CreateClient(); 72client = server.CreateClient();
HttpsRedirectionMiddlewareTests.cs (9)
49var client = server.CreateClient(); 104var client = server.CreateClient(); 160var client = server.CreateClient(); 222var client = server.CreateClient(); 262var client = server.CreateClient(); 308var client = server.CreateClient(); 350var client = server.CreateClient(); 399var client = server.CreateClient(); 443var client = server.CreateClient();
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
442Response = await server.CreateClient().SendAsync(request),
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
31var client = testHost.CreateClient();
LocalizationTest.cs (1)
110var client = testHost.CreateClient();
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
83var client = server.CreateClient(); 129var client = server.CreateClient(); 205var client = server.CreateClient();
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
48var client = server.CreateClient(); 89var client = server.CreateClient(); 129var client = server.CreateClient(); 175var client = server.CreateClient();
CookieRequestCultureProviderTest.cs (5)
62var client = server.CreateClient(); 114var client = server.CreateClient(); 163var client = server.CreateClient(); 212var client = server.CreateClient(); 272var client = server.CreateClient();
CustomRequestCultureProviderTest.cs (1)
59var client = server.CreateClient();
QueryStringRequestCultureProviderTest.cs (8)
52var client = server.CreateClient(); 86var client = server.CreateClient(); 127var client = server.CreateClient(); 168var client = server.CreateClient(); 210var client = server.CreateClient(); 252var client = server.CreateClient(); 299var client = server.CreateClient(); 347var client = server.CreateClient();
RequestLocalizationMiddlewareTest.cs (1)
65var client = server.CreateClient();
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
45await server.CreateClient().GetAsync(string.Empty);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
484client = _server.CreateClient();
Microsoft.AspNetCore.OutputCaching.Tests (41)
OutputCacheTests.cs (41)
28var client = server.CreateClient(); 50var client = server.CreateClient(); 70var client = server.CreateClient(); 90var client = server.CreateClient(); 110var client = server.CreateClient(); 132var client = server.CreateClient(); 163var client = server.CreateClient(); 194var client = server.CreateClient(); 217var client = server.CreateClient(); 244var client = server.CreateClient(); 267var client = server.CreateClient(); 295var client = server.CreateClient(); 316var client = server.CreateClient(); 340var client = server.CreateClient(); 365var client = server.CreateClient(); 388var client = server.CreateClient(); 411var client = server.CreateClient(); 434var client = server.CreateClient(); 457var client = server.CreateClient(); 479var client = server.CreateClient(); 502var client = server.CreateClient(); 524var client = server.CreateClient(); 546var client = server.CreateClient(); 566var client = server.CreateClient(); 590var client = server.CreateClient(); 615var client = server.CreateClient(); 635var client = server.CreateClient(); 659var client = server.CreateClient(); 683var client = server.CreateClient(); 709var client = server.CreateClient(); 732var client = server.CreateClient(); 758var client = server.CreateClient(); 781var client = server.CreateClient(); 808var client = server.CreateClient(); 831var client = server.CreateClient(); 854var client = server.CreateClient(); 874var client = server.CreateClient(); 898var client = server.CreateClient(); 931var client = server.CreateClient(); 960var client = server.CreateClient(); 1002var client = server.CreateClient();
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
237var client = server.CreateClient(); 308var client = server.CreateClient(); 384var client = server.CreateClient(); 486var client = server.CreateClient(); 570var client = server.CreateClient(); 721var client = server.CreateClient();
Microsoft.AspNetCore.ResponseCaching.Tests (37)
ResponseCachingTests.cs (37)
28var client = server.CreateClient(); 52var client = server.CreateClient(); 74var client = server.CreateClient(); 96var client = server.CreateClient(); 118var client = server.CreateClient(); 142var client = server.CreateClient(); 175var client = server.CreateClient(); 208var client = server.CreateClient(); 232var client = server.CreateClient(); 256var client = server.CreateClient(); 279var client = server.CreateClient(); 302var client = server.CreateClient(); 326var client = server.CreateClient(); 348var client = server.CreateClient(); 370var client = server.CreateClient(); 392var client = server.CreateClient(); 414var client = server.CreateClient(); 436var client = server.CreateClient(); 458var client = server.CreateClient(); 480var client = server.CreateClient(); 502var client = server.CreateClient(); 528var client = server.CreateClient(); 555var client = server.CreateClient(); 577var client = server.CreateClient(); 603var client = server.CreateClient(); 629var client = server.CreateClient(); 656var client = server.CreateClient(); 681var client = server.CreateClient(); 709var client = server.CreateClient(); 734var client = server.CreateClient(); 760var client = server.CreateClient(); 785var client = server.CreateClient(); 810var client = server.CreateClient(); 832var client = server.CreateClient(); 858var client = server.CreateClient(); 893var client = server.CreateClient(); 928var client = server.CreateClient();
Microsoft.AspNetCore.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
175var client = server.CreateClient(); 333var client = server.CreateClient(); 472var client = server.CreateClient(); 535var client = server.CreateClient(); 598var client = server.CreateClient(); 651var client = server.CreateClient(); 696var client = server.CreateClient(); 748var client = server.CreateClient(); 801var client = server.CreateClient(); 871var client = server.CreateClient(); 935var client = server.CreateClient(); 999var client = server.CreateClient(); 1060var client = server.CreateClient(); 1110var client = server.CreateClient(); 1160var client = server.CreateClient(); 1210var client = server.CreateClient(); 1276var client = server.CreateClient();
Microsoft.AspNetCore.Rewrite.Tests (71)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (17)
35var response = await server.CreateClient().GetStringAsync("/hey/hello"); 61var response = await server.CreateClient().GetStringAsync("/hey/hello"); 87var response = await server.CreateClient().GetStringAsync("/hey/hello"); 112var response = await server.CreateClient().GetStringAsync("/hey/hello"); 137var response = await server.CreateClient().GetStringAsync("http://www.foo.org/"); 162var response = await server.CreateClient().GetStringAsync("http://www.foo.org:42/"); 187var response = await server.CreateClient().GetStringAsync("http://www.foo.org/"); 214var response = await server.CreateClient().GetStringAsync(url); 245var response = await server.CreateClient().GetStringAsync(url); 271var response = await server.CreateClient().GetStringAsync("http://www.foo.org/blog/2016-jun"); 297var response = await server.CreateClient().GetStringAsync("http://www.foo.org/blog/2016-jun"); 323var response = await server.CreateClient().GetStringAsync("http://www.foo.org/blog/2016-jun"); 350var response = await server.CreateClient().GetAsync(input); 378var response = await server.CreateClient().GetAsync(input); 406var response = await server.CreateClient().GetStringAsync(input); 433var response = await server.CreateClient().GetAsync(""); 462var response = await server.CreateClient().GetAsync("/home?report_id=123");
IISUrlRewrite\MiddleWareTests.cs (20)
45var response = await server.CreateClient().GetAsync("article/10/hey"); 77var response = await server.CreateClient().GetStringAsync("/article/10/hey"); 113var response = await server.CreateClient().GetStringAsync("page.asp?p2=321&p1=123"); 145var response = await server.CreateClient().GetAsync("HElLo"); 180var response = await server.CreateClient().GetAsync("hey/hello/"); 215var response = await server.CreateClient().GetAsync("hey/hello"); 249var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 289var response = await server.CreateClient().GetStringAsync(new Uri("http://example.com")); 326var response = await server.CreateClient().GetStringAsync(new Uri("http://example.com/")); 363var response = await server.CreateClient().GetAsync(new Uri("http://example.com/")); 397var response = await server.CreateClient().GetStringAsync(new Uri("http://example.com/")); 432var response = await server.CreateClient().GetAsync(""); 470var response = await server.CreateClient().GetAsync("hey/hello"); 506var response = await server.CreateClient().GetAsync("article/23?p1=123&p2=abc"); 542var response = await server.CreateClient().GetAsync("article/23?p1=123&p2=abc"); 579var ex = await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => server.CreateClient().GetAsync("article/23?p1=123&p2=abc")); 617var response = await server.CreateClient().GetStringAsync($"http://localhost/{Guid.NewGuid()}/foo/bar"); 661var response = await server.CreateClient().GetStringAsync(new Uri(requestUri)); 692var response = await server.CreateClient().GetAsync("article/10/hey"); 749var response = await server.CreateClient().GetStringAsync("http://localhost/foo/bar");
MiddlewareTests.cs (34)
41var response = await server.CreateClient().GetStringAsync("foo"); 71var response = await server.CreateClient().GetStringAsync("foo"); 103var response = await server.CreateClient().GetStringAsync("foo"); 135var response = await server.CreateClient().GetStringAsync("foo"); 172var response = await server.CreateClient().GetAsync(requestUrl); 202var response = await server.CreateClient().GetAsync("foo"); 226var response = await server.CreateClient().GetAsync("foo?bar=1"); 254var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 281var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 327var response = await server.CreateClient().GetAsync(new Uri("http://" + hostPathAndQuery)); 355var response = await server.CreateClient().GetAsync(new Uri(hostSchemePathAndQuery)); 381var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 408var response = await server.CreateClient().GetAsync(new Uri("http://example.com")); 437var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 466var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 491var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 526var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 554var response = await server.CreateClient().GetAsync(new Uri("https://www.example.com")); 583var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 608var response = await server.CreateClient().GetAsync(new Uri("https://www.example.com")); 633var response = await server.CreateClient().GetAsync(""); 669var response = await server.CreateClient().GetStringAsync("foo"); 696var response = await server.CreateClient().GetStringAsync(""); 724var response = await server.CreateClient().GetAsync(""); 753var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 781var response = await server.CreateClient().GetAsync(new Uri(requestUri)); 806var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 835var response = await server.CreateClient().GetAsync(new Uri("https://example.com")); 872var response = await server.CreateClient().GetStringAsync("foo"); 910var response = await server.CreateClient().GetStringAsync("foo"); 946var response = await server.CreateClient().GetStringAsync("foo"); 983var response = await server.CreateClient().GetStringAsync("foo"); 1020var response = await server.CreateClient().GetStringAsync("foo"); 1052var response = await server.CreateClient().GetStringAsync("foo");
Microsoft.AspNetCore.Routing.FunctionalTests (23)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
34_client = _testServer.CreateClient();
Benchmarks\RouterBenchmarkTest.cs (1)
35_client = _testServer.CreateClient();
EndpointRoutingSampleTest.cs (1)
26_client = _testServer.CreateClient();
MinimalFormTests.cs (14)
48var client = server.CreateClient(); 108var client = server.CreateClient(); 158var client = server.CreateClient(); 197var client = server.CreateClient(); 274var client = server.CreateClient(); 321var client = server.CreateClient(); 417var client = server.CreateClient(); 469var client = server.CreateClient(); 528var client = server.CreateClient(); 580var client = server.CreateClient(); 632var client = server.CreateClient(); 681var client = server.CreateClient(); 721var client = server.CreateClient(); 748var client = server.CreateClient();
RouteHandlerTest.cs (2)
45var client = server.CreateClient(); 95var client = server.CreateClient();
RouterSampleTest.cs (1)
24_client = _testServer.CreateClient();
RoutingTestFixture.cs (2)
30Client = _server.CreateClient(); 38var client = _server.CreateClient();
WebHostBuilderExtensionsTest.cs (1)
94var client = testServer.CreateClient();
Microsoft.AspNetCore.Server.IISIntegration.Tests (10)
IISMiddlewareTests.cs (10)
56var response = await server.CreateClient().SendAsync(req); 93var response = await server.CreateClient().SendAsync(req); 137var response = await server.CreateClient().SendAsync(request); 196var response = await server.CreateClient().SendAsync(request); 241var response = await server.CreateClient().SendAsync(request); 286var response = await server.CreateClient().SendAsync(request); 385var response = await server.CreateClient().SendAsync(request); 426await server.CreateClient().SendAsync(req); 483await server.CreateClient().SendAsync(req); 528await server.CreateClient().SendAsync(req);
Microsoft.AspNetCore.Session.Tests (26)
SessionTests.cs (26)
54var client = server.CreateClient(); 91var client = server.CreateClient(); 146var client = server.CreateClient(); 197var client = server.CreateClient(); 202client = server.CreateClient(); 257var client = server.CreateClient(); 262client = server.CreateClient(); 315var client = server.CreateClient(); 320client = server.CreateClient(); 361var client = server.CreateClient(); 420var client = server.CreateClient(); 424client = server.CreateClient(); 489var client = server.CreateClient(); 493client = server.CreateClient(); 545var client = server.CreateClient(); 595var client = server.CreateClient(); 631var client = server.CreateClient(); 676var client = server.CreateClient(); 725var client = server.CreateClient(); 774var client = server.CreateClient(); 822var client = server.CreateClient(); 874var client = server.CreateClient(); 937var client = server.CreateClient(); 1003var client = server.CreateClient(); 1068var client = server.CreateClient(); 1120var client = server.CreateClient();
Microsoft.AspNetCore.StaticFiles.Tests (59)
CacheHeaderTests.cs (15)
20HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 31HttpResponseMessage response1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 32HttpResponseMessage response2 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 52HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 62HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 66HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 78HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 90HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 114HttpResponseMessage resp1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 118HttpResponseMessage resp2 = await server.CreateClient().SendAsync(req2); 128HttpResponseMessage resp1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 132HttpResponseMessage resp2 = await server.CreateClient().SendAsync(req2); 142HttpResponseMessage resp1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 146HttpResponseMessage resp2 = await server.CreateClient().SendAsync(req2); 167HttpResponseMessage response = await server.CreateClient().SendAsync(
DefaultFilesMiddlewareTests.cs (3)
26var response = await server.CreateClient().GetAsync("/"); 74var response = await server.CreateClient().GetAsync(requestUrl); 222var response = await server.CreateClient().GetAsync(requestUrl);
DirectoryBrowserMiddlewareTests.cs (1)
47var response = await server.CreateClient().GetAsync("/");
RangeHeaderTests.cs (34)
21HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 26HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 42HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 47HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 63HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 68HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 80HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 85HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 97HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 102HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 114HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 119HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 138HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 155HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 169HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 174HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 188HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 193HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 208HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 212HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 220resp = await server.CreateClient().SendAsync(req); 235HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 239HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 247resp = await server.CreateClient().SendAsync(req); 272HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 293HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 314HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 328HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 346HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 361HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 381HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 403HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 424HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 444HttpResponseMessage resp = await server.CreateClient().SendAsync(req);
StaticFileMiddlewareTests.cs (6)
38var response = await server.CreateClient().GetAsync("/ranges.txt"); 72var response = await server.CreateClient().GetAsync(Path.GetFileName(badLink)); 112var response = await server.CreateClient().GetAsync("TestDocument.txt"); 152var response = await server.CreateClient().GetAsync("/"); 431var response = await server.CreateClient().GetAsync("/"); 462var response = await server.CreateClient().GetAsync("/TestDocument.txt");
Microsoft.AspNetCore.TestHost (5)
HostBuilderTestServerExtensions.cs (1)
33return host.GetTestServer().CreateClient();
RequestBuilder.cs (3)
75return TestServer.CreateClient().SendAsync(_req); 85return TestServer.CreateClient().SendAsync(_req); 95return TestServer.CreateClient().SendAsync(_req);
WebHostBuilderExtensions.cs (1)
66return host.GetTestServer().CreateClient();
Microsoft.AspNetCore.TestHost.Tests (63)
ClientHandlerTests.cs (1)
709var result = await server.CreateClient().GetStringAsync("/");
RequestLifetimeTests.cs (4)
27var client = host.GetTestServer().CreateClient(); 43var client = host.GetTestServer().CreateClient(); 62var client = host.GetTestServer().CreateClient(); 85var client = host.GetTestServer().CreateClient();
ResponseBodyTests.cs (7)
27var response = await host.GetTestServer().CreateClient().GetAsync("/"); 44var response = await host.GetTestServer().CreateClient().GetAsync("/"); 60var client = host.GetTestServer().CreateClient(); 78var client = host.GetTestServer().CreateClient(); 96var client = host.GetTestServer().CreateClient(); 117var client = host.GetTestServer().CreateClient(); 136var client = host.GetTestServer().CreateClient();
ResponseResetTests.cs (7)
28var client = host.GetTestServer().CreateClient(); 44var client = host.GetTestServer().CreateClient(); 60var client = host.GetTestServer().CreateClient(); 79var client = host.GetTestServer().CreateClient(); 98var client = host.GetTestServer().CreateClient(); 120var client = host.GetTestServer().CreateClient(); 146var client = host.GetTestServer().CreateClient();
TestClientTests.cs (21)
31var client = server.CreateClient(); 53var client = server.CreateClient(); 75var client = server.CreateClient(); 95var client = server.CreateClient(); 113var client = server.CreateClient(); 149var client = server.CreateClient(); 194var client = server.CreateClient(); 251var client = server.CreateClient(); 302var client = server.CreateClient(); 359var client = server.CreateClient(); 421var client = server.CreateClient(); 468var client = server.CreateClient(); 519var client = server.CreateClient(); 849var client = server.CreateClient(); 878using var client = server.CreateClient(); 903var client = server.CreateClient(); 931var client = server.CreateClient(); 951var client = server.CreateClient(); 977var client = server.CreateClient(); 1004var client = server.CreateClient(); 1041var client = testServer.CreateClient();
TestServerTests.cs (23)
39var response = await host.GetTestServer().CreateClient().GetAsync("/"); 55var response = await host.GetTestServer().CreateClient().GetAsync("/"); 132var response = await host.CreateClient().GetStringAsync("/"); 203string result = await server.CreateClient().GetStringAsync("/path"); 225var response = await server.CreateClient().PostAsync("/", new StreamContent(stream)); 255string result = await server.CreateClient().GetStringAsync("/path"); 440string result = await server.CreateClient().GetStringAsync("/path"); 462string result = await server.CreateClient().GetStringAsync("/path"); 510var result = await server.CreateClient().GetStringAsync("/path"); 551var result = await server.CreateClient().GetStringAsync("/path"); 568string result = await server.CreateClient().GetStringAsync("/path"); 589string result = await server.CreateClient().GetStringAsync("/path"); 621string result = await server.CreateClient().GetStringAsync("/path"); 637string result = await server.CreateClient().GetStringAsync("/path"); 654HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 672HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 675await Assert.ThrowsAsync<ObjectDisposedException>(() => server.CreateClient().GetAsync("/")); 693await Assert.ThrowsAsync<TaskCanceledException>(async () => { string result = await server.CreateClient().GetStringAsync("/path"); }); 702HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 715HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 738var result = await server.CreateClient().GetStringAsync("/path"); 765await Assert.ThrowsAsync<Exception>(() => server.CreateClient().GetAsync("/path")); 788var client = server.CreateClient();