1428 references to GetAsync
Aspire.Dashboard.Tests (14)
Integration\FrontendBrowserTokenAuthTests.cs (5)
43var response = await client.GetAsync("/").DefaultTimeout(); 65var response1 = await client.GetAsync(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.TracesUrl(), token: apiKey)).DefaultTimeout(); 72var response2 = await client.GetAsync(DashboardUrls.StructuredLogsUrl()).DefaultTimeout(); 96var response = await client.GetAsync(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.TracesUrl(), token: apiKey)).DefaultTimeout(); 120var response = await client.GetAsync(DashboardUrls.LoginUrl(returnUrl: DashboardUrls.TracesUrl(), token: "Wrong!")).DefaultTimeout();
Integration\FrontendOpenIdConnectAuthTests.cs (2)
40var response = await client.GetAsync("/").DefaultTimeout(); 85var response = await client.GetAsync("/").DefaultTimeout();
Integration\StartupTests.cs (1)
693var response = await client.GetAsync("/").DefaultTimeout();
Middleware\ValidateTokenMiddlewareTests.cs (6)
22var response = await host.GetTestClient().GetAsync("/login?t=test").DefaultTimeout(); 30var response = await host.GetTestClient().GetAsync("/login?t=test&returnUrl=/test").DefaultTimeout(); 38var response = await host.GetTestClient().GetAsync("/login?t=wrong").DefaultTimeout(); 46var response = await host.GetTestClient().GetAsync("/login?t=wrong&returnUrl=/test").DefaultTimeout(); 54var response = await host.GetTestClient().GetAsync("/login?t=token").DefaultTimeout(); 62var response = await host.GetTestClient().GetAsync("/login?t=token&returnUrl=/test").DefaultTimeout();
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
95var response = await client.GetAsync(path);
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
85var response = await client.GetAsync(path);
Aspire.Playground.Tests (6)
AppHostTests.cs (2)
105response = await client.GetAsync(path); 272var response = await client.GetAsync(path);
ProjectSpecificTests.cs (4)
81await AppHostTests.CreateHttpClientWithResilience(app, "funcapp").GetAsync("/api/injected-resources"); 91await apiServiceClient.GetAsync("/publish/asq"); 100await apiServiceClient.GetAsync("/publish/blob"); 109await apiServiceClient.GetAsync("/publish/eventhubs");
AuthSamples.FunctionalTests (34)
ClaimsTransformTests.cs (2)
25var response = await Client.GetAsync("/"); 36var response = await Client.GetAsync("/Home/MyClaims");
CookiesTests.cs (6)
24var response = await Client.GetAsync("/"); 35var response = await Client.GetAsync("/Home/MyClaims"); 58var response = await Client.GetAsync("/Account/Logout"); 62response = await Client.GetAsync("/Home/MyClaims"); 72var response = await Client.GetAsync("/Home/MyClaims"); 81var goToSignIn = await Client.GetAsync("/account/login");
CustomAuthorizationFailureResponseTests.cs (2)
24var response = await Client.GetAsync("api/Sample/customPolicyWithCustomForbiddenMessage"); 34var response = await Client.GetAsync("api/Sample/customPolicy");
CustomPolicyProviderTests.cs (8)
28var response = await Client.GetAsync("/"); 39var response = await Client.GetAsync("/Home/MinimumAge10"); 54var response = await Client.GetAsync("/Home/MinimumAge10"); 70var response = await Client.GetAsync("/Home/MinimumAge10"); 85var response = await Client.GetAsync("/Home/MinimumAge50"); 101var response = await Client.GetAsync("/Home/MinimumAge50"); 113var response = await Client.GetAsync("/Home/MinimumAge50"); 123var goToSignIn = await client.GetAsync("/account/signin");
DynamicSchemeTests.cs (4)
26var response = await Client.GetAsync("/"); 61response = await Client.GetAsync("/Auth/Remove?scheme=New1"); 70response = await Client.GetAsync("/Auth/Remove?scheme=New2"); 82var goToSignIn = await Client.GetAsync("/");
IdentityExternalClaimsTests.cs (2)
25var response = await Client.GetAsync("/"); 36var response = await Client.GetAsync("/MyClaims");
PathSchemeSelectionTests.cs (8)
26var response = await Client.GetAsync("/"); 37var response = await Client.GetAsync("/api"); 48var response = await Client.GetAsync("/Home/MyClaims"); 60var response = await Client.GetAsync("/api/Home/MyClaims"); 84var response = await Client.GetAsync("/Account/Logout"); 88response = await Client.GetAsync("/Home/MyClaims"); 98var response = await Client.GetAsync("/Home/MyClaims"); 107var goToSignIn = await Client.GetAsync("/account/login");
StaticFilesAuthTests.cs (2)
24var response = await Client.GetAsync("/"); 35var response = await Client.GetAsync(scenario);
BasicWebSite (1)
Services\WeatherForecastService.cs (1)
21var result = await _httpClient.GetAsync("/WeatherData");
Diagnostics.EFCore.FunctionalTests (13)
DatabaseErrorPageMiddlewareTest.cs (12)
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/"); 285HttpResponseMessage response = await client.GetAsync("http://localhost/"); 306response = await client.GetAsync("http://localhost/"); 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 (1)
40HttpResponseMessage response = await server.CreateClient().GetAsync("http://localhost/");
dotnet-openapi (1)
HttpClientWrapper.cs (1)
31var response = await _client.GetAsync(url);
HeaderPropagationSample (1)
Startup.cs (1)
77var response = await client.GetAsync(uri);
HttpClientApp (2)
Program.cs (2)
22var response = await client.GetAsync("https://localhost:5003"); 27response = await client.GetAsync("https://localhost:5003");
IIS.FunctionalTests (60)
Http2TrailersResetTests.cs (4)
237var response = await client.GetAsync(Fixture.Client.BaseAddress + "/Reset_BeforeResponse_Resets_Complete"); 298var response = await client.GetAsync(Fixture.Client.BaseAddress + "/Reset_BeforeResponse_Zero_Resets_Complete"); 322var response = await client.GetAsync(Fixture.Client.BaseAddress + "/Reset_AfterResponseHeaders_Resets_Complete"); 519return await client.GetAsync(uri);
Http3Tests.cs (8)
50var response = await client.GetAsync(Fixture.Client.BaseAddress.ToString() + "Http3_Direct"); 76var response3 = await client.GetAsync(address); 92var response2 = await client.GetAsync(address); 109var response = await client.GetAsync(address); 123var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(address)); 137await client.GetAsync(Fixture.Client.BaseAddress.ToString() + "Http3_ResetAfterHeaders_SetResult"); 154await client.GetAsync(Fixture.Client.BaseAddress.ToString() + "Http3_AppExceptionAfterHeaders_InternalError_SetResult"); 170var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(address));
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (5)
95var response = await deploymentResult.HttpClient.GetAsync("/ServerAddresses"); 111var response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 118response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 132response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 138response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
58await result.HttpClient.GetAsync("HelloWorld"); 74await result.HttpClient.GetAsync("HelloWorld"); 87await result.HttpClient.GetAsync("Throw");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (8)
52var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 76var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 99var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 122var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 146var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 167var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 183response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 199var response = await deploymentResult.HttpClient.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
396return await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
89var response = await client.GetAsync("GetClientCert");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
53var response = await connection.GetAsync(path); 112HttpResponseMessage response = await client.GetAsync(uri); 117response = await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
35var response = await deploymentResult.HttpClient.GetAsync("/HttpSysRequestTimingInfo");
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
118await deploymentResult.HttpClient.GetAsync("/"); 132await deploymentResult.HttpClient.GetAsync("/"); 148await deploymentResult.HttpClient.GetAsync("/"); 169var response = await deploymentResult.HttpClient.GetAsync("/"); 211var response = await deploymentResult.HttpClient.GetAsync(path); 245var response = await deploymentResult.HttpClient.GetAsync("Test"); 261var response = await deploymentResult.HttpClient.GetAsync("Test"); 275var response = await deploymentResult.HttpClient.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (4)
59var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 60var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld"); 86var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 87var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (8)
399var response = await _fixture.Client.GetAsync("/CompleteAsync"); 402var response2 = await _fixture.Client.GetAsync("/CompleteAsync_Completed"); 516var response = await _fixture.Client.GetAsync("ResponseEmptyHeaders"); 525var response = await _fixture.Client.GetAsync("ResponseHeaders"); 545var response = await _fixture.Client.GetAsync("Throw"); 568var response = await _fixture.Client.GetAsync($"SetCustomErorCode?code={code}&reason={reason}&writeBody={body != null}&body={body}"); 591var response = await _fixture.Client.GetAsync("OverrideServer"); 690var response = await _fixture.Client.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\WindowsAuthTests.cs (1)
55var response = await client.GetAsync("/Auth");
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (5)
45var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 69var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 99var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 125var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 152var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.LongTests (44)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
53var response = await connection.GetAsync(path); 112HttpResponseMessage response = await client.GetAsync(uri); 117response = await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (11)
68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (30)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1384var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1389var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.Microbenchmarks (2)
PlaintextBenchmark.cs (1)
38await _client.GetAsync("/plaintext");
StartupTimeBenchmark.cs (1)
50var response = await _client.GetAsync("");
IIS.NewHandler.FunctionalTests (45)
NewHandlerTests.cs (1)
27var response = await result.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
53var response = await connection.GetAsync(path); 112HttpResponseMessage response = await client.GetAsync(uri); 117response = await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (11)
68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (30)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1384var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1389var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.NewShim.FunctionalTests (45)
NewShimTests.cs (1)
25var response = await result.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
53var response = await connection.GetAsync(path); 112HttpResponseMessage response = await client.GetAsync(uri); 117response = await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (11)
68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (30)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1384var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1389var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.ShadowCopy.Tests (22)
ShadowCopyTests.cs (19)
26var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 52var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 83var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 118var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 137response = await deploymentResult.HttpClient.GetAsync("Wow!"); 154var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 168response = await deploymentResult.HttpClient.GetAsync("Wow!"); 183var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 194response = await deploymentResult.HttpClient.GetAsync("Wow!"); 210var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 219response = await deploymentResult.HttpClient.GetAsync("Wow!"); 233response = await deploymentResult.HttpClient.GetAsync("Wow!"); 252var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 261response = await deploymentResult.HttpClient.GetAsync("Wow!"); 275response = await deploymentResult.HttpClient.GetAsync("Wow!"); 294var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 309response = await deploymentResult.HttpClient.GetAsync("Wow!"); 324var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 339response = await deploymentResult.HttpClient.GetAsync("Wow!");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
53var response = await connection.GetAsync(path); 112HttpResponseMessage response = await client.GetAsync(uri); 117response = await client.GetAsync(uri);
IIS.Tests (3)
ResponseBodySizeTests.cs (1)
27var response = await testServer.HttpClient.GetAsync("/");
TestServerTest.cs (1)
30var result = await testServer.HttpClient.GetAsync(expectedPath);
Utilities\TestServer.cs (1)
76(await server.HttpClient.GetAsync("/start")).EnsureSuccessStatusCode();
IISExpress.FunctionalTests (103)
InProcess\AuthenticationTests.cs (6)
31var response = await deploymentResult.HttpClient.GetAsync("/AuthenticationAnonymous"); 37response = await deploymentResult.HttpClient.GetAsync("/AuthenticationRestricted"); 43response = await deploymentResult.HttpClient.GetAsync("/AuthenticationRestrictedNTLM"); 50response = await deploymentResult.HttpClient.GetAsync("/AuthenticationForbidden"); 57response = await httpClient.GetAsync("/AuthenticationAnonymous"); 62response = await httpClient.GetAsync("/AuthenticationRestricted");
InProcess\IISExpressShutdownTests.cs (4)
33await deploymentResult.HttpClient.GetAsync("/Shutdown"); 62await deploymentResult.HttpClient.GetAsync("/Shutdown"); 84var response = await result.HttpClient.GetAsync("/HelloWorld"); 96var response = await result.HttpClient.GetAsync("/HelloWorld");
OutOfProcess\MultipleAppTests.cs (1)
48requestTasks.Add(deploymentResult.HttpClient.GetAsync("/HelloWorld"));
OutOfProcess\NtlmAuthentationTest.cs (7)
45var response = await result.HttpClient.GetAsync("/HelloWorld"); 52response = await httpClient.GetAsync("/Anonymous"); 57response = await httpClient.GetAsync("/Restricted"); 62response = await httpClient.GetAsync("/RestrictedNTLM"); 68response = await httpClient.GetAsync("/Forbidden"); 74response = await httpClient.GetAsync("/Anonymous"); 79response = await httpClient.GetAsync("/Restricted");
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (5)
95var response = await deploymentResult.HttpClient.GetAsync("/ServerAddresses"); 111var response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 118response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 132response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 138response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
58await result.HttpClient.GetAsync("HelloWorld"); 74await result.HttpClient.GetAsync("HelloWorld"); 87await result.HttpClient.GetAsync("Throw");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (8)
52var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 76var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 99var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 122var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 146var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 167var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 183response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 199var response = await deploymentResult.HttpClient.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
396return await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
89var response = await client.GetAsync("GetClientCert");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
53var response = await connection.GetAsync(path); 112HttpResponseMessage response = await client.GetAsync(uri); 117response = await client.GetAsync(uri);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
35var response = await deploymentResult.HttpClient.GetAsync("/HttpSysRequestTimingInfo");
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
118await deploymentResult.HttpClient.GetAsync("/"); 132await deploymentResult.HttpClient.GetAsync("/"); 148await deploymentResult.HttpClient.GetAsync("/"); 169var response = await deploymentResult.HttpClient.GetAsync("/"); 211var response = await deploymentResult.HttpClient.GetAsync(path); 245var response = await deploymentResult.HttpClient.GetAsync("Test"); 261var response = await deploymentResult.HttpClient.GetAsync("Test"); 275var response = await deploymentResult.HttpClient.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (4)
59var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 60var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld"); 86var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 87var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (8)
399var response = await _fixture.Client.GetAsync("/CompleteAsync"); 402var response2 = await _fixture.Client.GetAsync("/CompleteAsync_Completed"); 516var response = await _fixture.Client.GetAsync("ResponseEmptyHeaders"); 525var response = await _fixture.Client.GetAsync("ResponseHeaders"); 545var response = await _fixture.Client.GetAsync("Throw"); 568var response = await _fixture.Client.GetAsync($"SetCustomErorCode?code={code}&reason={reason}&writeBody={body != null}&body={body}"); 591var response = await _fixture.Client.GetAsync("OverrideServer"); 690var response = await _fixture.Client.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\WindowsAuthTests.cs (1)
55var response = await client.GetAsync("/Auth");
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (11)
68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (30)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1384var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1389var response = await client.GetAsync("/ANCM_HTTPS_PORT"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
UpgradeFeatureDetectionTests.cs (1)
74var response = await deploymentResult.HttpClient.GetAsync("UpgradeFeatureDetection");
Infrastructure.Common (3)
ServiceUtilHelper.cs (3)
544HttpResponseMessage response = httpClient.GetAsync(requestUri).GetAwaiter().GetResult(); 556HttpResponseMessage response = httpClient.GetAsync(requestUri).GetAwaiter().GetResult(); 568HttpResponseMessage response = await httpClient.GetAsync(requestUri);
installer.tasks (1)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
74HttpResponseMessage response = await client.GetAsync(c.Url);
Interop.FunctionalTests (9)
HttpClientHttp2InteropTests.cs (9)
64var response = await client.GetAsync(url).DefaultTimeout(); 535var response = await client.GetAsync(url).DefaultTimeout(); 599var exception = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(url)).DefaultTimeout(); 1108var response = await client.GetAsync(url).DefaultTimeout(); 1229var requestTask = client.GetAsync(url).DefaultTimeout(); 1401var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(url)).DefaultTimeout(); 1590var response = await client.GetAsync(url + " !\"$%&'()*++,-./0123456789:;<>=@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`{|}~點看").DefaultTimeout(); 1634var response = await client.GetAsync(url).DefaultTimeout(); 1679var response = await client.GetAsync(url).DefaultTimeout();
JwtClientSample (1)
Program.cs (1)
84var httpResponse = await new HttpClient().GetAsync(ServerUrl + $"/generatetoken?user={userId}");
Microsoft.AspNetCore.Authentication.Test (71)
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/"); 396var response = await client.GetAsync("https://example.com/"); 413var response = await client.GetAsync("https://example.com/"); 432var response = await client.GetAsync("https://example.com/"); 450var response = await client.GetAsync("https://example.com/"); 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 (1)
40var response = await server.CreateClient().GetAsync("http://example.com/normal");
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");
OpenIdConnect\OpenIdConnectEventTests.cs (8)
967var response = await client.GetAsync("/"); 994var response = await client.GetAsync("/"); 1011var response = await client.GetAsync("/signout-oidc"); 1037var response = await client.GetAsync("/signout-oidc"); 1063var response = await client.GetAsync("/signout-oidc"); 1080var response = await client.GetAsync("/signout-callback-oidc?state=protected_state"); 1103var response = await client.GetAsync("/signout-callback-oidc?state=protected_state"); 1130var response = await client.GetAsync("/signout-callback-oidc?state=protected_state");
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (8)
967var response = await client.GetAsync("/"); 994var response = await client.GetAsync("/"); 1011var response = await client.GetAsync("/signout-oidc"); 1037var response = await client.GetAsync("/signout-oidc"); 1063var response = await client.GetAsync("/signout-oidc"); 1080var response = await client.GetAsync("/signout-callback-oidc?state=protected_state"); 1103var response = await client.GetAsync("/signout-callback-oidc?state=protected_state"); 1130var response = await client.GetAsync("/signout-callback-oidc?state=protected_state");
WsFederation\WsFederationTest.cs (8)
65var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => httpClient.GetAsync("/")); 75var response = await httpClient.GetAsync("/"); 91var response = await httpClient.GetAsync("/mapped-challenge"); 107var response = await httpClient.GetAsync("/premapped-challenge"); 123var response = await httpClient.GetAsync("/"); 174var response = await httpClient.GetAsync("/"); 191var response = await httpClient.GetAsync("/signin-wsfed?wa=wsignoutcleanup1.0"); 233var result = await server.CreateClient().GetAsync("");
WsFederation\WsFederationTest_Handler.cs (8)
63var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => httpClient.GetAsync("/")); 73var response = await httpClient.GetAsync("/"); 89var response = await httpClient.GetAsync("/mapped-challenge"); 105var response = await httpClient.GetAsync("/premapped-challenge"); 121var response = await httpClient.GetAsync("/"); 172var response = await httpClient.GetAsync("/"); 189var response = await httpClient.GetAsync("/signin-wsfed?wa=wsignoutcleanup1.0"); 231var result = await server.CreateClient().GetAsync("");
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (31)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (2)
77var response = await client.GetAsync("/healthz"); 122var response = await client.GetAsync("/healthz");
HealthCheckMiddlewareSampleTest.cs (4)
29var response = await client.GetAsync("/health"); 51var response = await client.GetAsync("/health"); 74var response = await client.GetAsync("/health/live"); 96var response = await client.GetAsync("/health/ready");
HealthCheckMiddlewareTests.cs (25)
65var response = await client.GetAsync("/frob"); 92var response = await client.GetAsync("/HEALTH"); 119var response = await client.GetAsync("/health"); 149var response = await client.GetAsync("/health"); 182var response = await client.GetAsync("/health"); 215var response = await client.GetAsync("/health"); 248var response = await client.GetAsync("/health"); 281var response = await client.GetAsync("/health"); 327var response = await client.GetAsync("/health"); 364var response = await client.GetAsync("/health"); 399var response = await client.GetAsync("/health"); 428var response = await client.GetAsync("/health"); 463var response = await client.GetAsync("/health"); 502var response = await client.GetAsync("/health"); 532var response = await client.GetAsync("http://localhost:5001/health"); 562var response = await client.GetAsync("http://localhost:5001/health/"); 590var response = await client.GetAsync("http://localhost:5001/HEALTH"); 620var response = await client.GetAsync("http://localhost:5001/health/detailed"); 655var response = await client.GetAsync("http://localhost:5001/health/detailed"); 692var response = await client.GetAsync("http://localhost:5001/health/detailed"); 730var response = await client.GetAsync("http://localhost:5001/health"); 768var response = await client.GetAsync("http://localhost:5001/health"); 806var response = await client.GetAsync("http://localhost:5000/health"); 848var response = await client.GetAsync("http://localhost:5001/health/detailed"); 892var response = await client.GetAsync("http://localhost:5001/health");
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (15)
Latency\AcceptanceTests.cs (1)
78_ = await host.GetTestClient().GetAsync("/");
Latency\ChecpointAcceptanceTests.cs (3)
62_ = await host.GetTestClient().GetAsync("/"); 105var e = await Record.ExceptionAsync(async () => response = await host.GetTestClient().GetAsync("/").ConfigureAwait(false)); 127using var response = await host.GetTestServer().CreateClient().GetAsync("/Path");
Logging\AcceptanceTests.cs (5)
449using var response = await client.GetAsync(RequestPath).ConfigureAwait(false); 569var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => client.GetAsync(requestPath)); 700using var response = await client.GetAsync(httpPath).ConfigureAwait(false); 730using var response = await client.GetAsync("").ConfigureAwait(false); 746using var response = await client.GetAsync("").ConfigureAwait(false);
Logging\AcceptanceTests.Mvc.cs (5)
65using var response = await client.GetAsync($"/api/users/{UserId}/someTestData?{QueryParamName}=foo").ConfigureAwait(false); 100using var response = await client.GetAsync($"/api/users/{UserId}/someTestData?{QueryParamName}=foo").ConfigureAwait(false); 146using var response = await client.GetAsync($"/api/users/{UserId}/{NoDataClassParamValue}?{QueryParamName}=foo").ConfigureAwait(false); 190using var response = await client.GetAsync($"/api/users/{UserId}/someTestData?{QueryParamName}=foo").ConfigureAwait(false); 231using var response = await client.GetAsync(RequestPath).ConfigureAwait(false);
Logging\AcceptanceTests.Routing.cs (1)
65using var response = await client.GetAsync(httpPath).ConfigureAwait(false);
Microsoft.AspNetCore.Diagnostics.Tests (41)
DeveloperExceptionPageMiddlewareTest.cs (10)
220await server.CreateClient().GetAsync("/path"); 255var response = await client.GetAsync("/path"); 290var response = await server.CreateClient().GetAsync("/path"); 330var response = await client.GetAsync("/path"); 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 (2)
338var response = await server.CreateClient().GetAsync("/path"); 405var response = await server.CreateClient().GetAsync("/path");
ExceptionHandlerTest.cs (20)
61var response = await client.GetAsync(string.Empty); 116var response = await client.GetAsync(string.Empty); 182var response = await client.GetAsync(string.Empty); 238var response = await client.GetAsync(string.Empty); 293var response = await client.GetAsync(string.Empty); 365var response = await client.GetAsync(string.Empty); 435var response = await client.GetAsync(string.Empty); 492await server.CreateClient().GetAsync(string.Empty); 599var response = await client.GetAsync("throw"); 648var response = await client.GetAsync("throw"); 689var response = await client.GetAsync("throw"); 728var response = await client.GetAsync("throw"); 769var response = await client.GetAsync("throw"); 820var response = await client.GetAsync(string.Empty); 874var response = await client.GetAsync(string.Empty); 926var response = await client.GetAsync(string.Empty); 984var response = await client.GetAsync(string.Empty); 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 (9)
61var response = await client.GetAsync(destination); 65response = await client.GetAsync(expectedUri); 127var response = await client.GetAsync(destination + "?name=James"); 189var response = await client.GetAsync(destination + "?name=James"); 244var response = await client.GetAsync(destination + "?name=James"); 278var response = await client.GetAsync("/"); 312var response = await client.GetAsync("/"); 349var response = await client.GetAsync("/skip"); 387var response = await client.GetAsync("/");
Microsoft.AspNetCore.FunctionalTests (7)
WebHostFunctionalTests.cs (7)
18await ExecuteStartOrStartWithTest(deploymentResult => deploymentResult.HttpClient.GetAsync(string.Empty), "StartRequestDelegateUrlApp"); 24await ExecuteStartOrStartWithTest(deploymentResult => deploymentResult.HttpClient.GetAsync("/route"), "StartRouteBuilderUrlApp"); 30await ExecuteStartOrStartWithTest(deploymentResult => deploymentResult.HttpClient.GetAsync(string.Empty), "StartWithIApplicationBuilderUrlApp"); 39var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), logger, deploymentResult.HostShutdownToken, retryCount: 5); 64var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), logger, deploymentResult.HostShutdownToken, retryCount: 5); 91var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), logger, deploymentResult.HostShutdownToken); 165var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), Logger, deploymentResult.HostShutdownToken, retryCount: 5);
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
HeaderPropagationIntegrationTest.cs (3)
46await client.GetAsync("http://localhost/"); // will throw 90var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => client.GetAsync("http://localhost/")); 251return client.GetAsync("");
Microsoft.AspNetCore.HostFiltering.Tests (2)
HostFilteringMiddlewareTests.cs (2)
74var response = await server.CreateClient().GetAsync("/"); 117var response = await server.CreateClient().GetAsync("/");
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
LinkedApplicationTests.cs (1)
46var response = await RetryHelper.RetryRequest(() => result.HttpClient.GetAsync("/"), logger, retryCount: 10);
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
3259var response = await client.GetAsync("generatetoken?user=bob"); 3322var response = await client.GetAsync("signin?user=bob"); 3421var response = await client.GetAsync("generatetoken?user=bob");
Microsoft.AspNetCore.Http.Extensions.Tests (2)
HttpResponseJsonExtensionsTests.cs (2)
512var result = await client.GetAsync("/"); 544var result = await client.GetAsync("/");
Microsoft.AspNetCore.Identity.FunctionalTests (41)
AuthorizationTests.cs (4)
47var response = await client.GetAsync(url); 86var response = await client.GetAsync(url); 119var response = await client.GetAsync(url); 147var response = await client.GetAsync(url);
ManagementTests.cs (1)
343var response = await client.GetAsync("/Identity/Account/Manage/DownloadPersonalData");
MapIdentityApiTests.cs (12)
201AssertUnauthorizedAndEmpty(await client.GetAsync("/auth/hello")); 278AssertUnauthorizedAndEmpty(await client.GetAsync("/auth/hello")); 281AssertUnauthorizedAndEmpty(await client.GetAsync("/auth/hello")); 284AssertUnauthorizedAndEmpty(await client.GetAsync("/auth/hello")); 358AssertUnauthorizedAndEmpty(await client.GetAsync("/auth/hello")); 561AssertOk(await client.GetAsync(GetEmailConfirmationLink(resentEmail))); 1034AssertUnauthorizedAndEmpty(await client.GetAsync("/identity/manage/info")); 1081AssertOk(await client.GetAsync(GetEmailConfirmationLink(email))); 1125AssertUnauthorizedAndEmpty(await client.GetAsync("/identity/manage/info")); 1166var emailConfirmationResponse = await client.GetAsync(GetEmailConfirmationLink(email)); 1266AssertOk(await client.GetAsync(GetEmailConfirmationLink(changeEmail))); 1418AssertOk(await client.GetAsync(GetEmailConfirmationLink(receivedEmail)));
NoIdentityAddedTests.cs (1)
32var response = await client.GetAsync(endpoint);
Pages\Account\ConfirmEmail.cs (1)
20var response = await client.GetAsync(link.Href);
Pages\Account\Login.cs (2)
48var response = await Client.GetAsync(_forgotPasswordLink.Href); 56var response = await Client.GetAsync(_reconfirmLink.Href);
Pages\Account\LoginWith2fa.cs (1)
43var goToLoginWithRecoveryCode = await Client.GetAsync(_loginWithRecoveryCodeLink.Href);
Pages\Account\Manage\Index.cs (8)
49var goToTwoFactor = await Client.GetAsync(_twoFactorLink.Href); 58var goToTwoFactor = await Client.GetAsync(_twoFactorLink.Href); 67var goToChangePassword = await Client.GetAsync(_changePasswordLink.Href); 76var response = await Client.GetAsync(_changePasswordLink.Href); 85var goToPersonalData = await Client.GetAsync(_personalDataLink.Href); 92var goToEmail = await Client.GetAsync(_emailLink.Href); 99var goToExternalLogin = await Client.GetAsync(_externalLoginLink.Href); 107var goToExternalLogin = await Client.GetAsync(_externalLoginLink.Href);
Pages\Account\Manage\PersonalData.cs (1)
23var goToDelete = await Client.GetAsync(_deleteLink.Href);
Pages\Account\Manage\TwoFactorAuthentication.cs (2)
38var goToEnableAuthenticator = await Client.GetAsync(_enableAuthenticatorLink.Href); 46var goToResetAuthenticator = await Client.GetAsync(_resetAuthenticatorLink.Href);
Pages\Account\ResetPassword.cs (1)
20var resetPasswordResponse = await client.GetAsync(link.Href);
Pages\Index.cs (5)
36var goToIndex = await client.GetAsync("/"); 46var goToRegister = await Client.GetAsync(_registerLink.Href); 56var goToLogin = await Client.GetAsync(_loginLink.Href); 66var goToManage = await Client.GetAsync(_manageLink.Href); 76var goToManage = await Client.GetAsync(_manageLink.Href);
Pages\RegisterConfirmation.cs (1)
33var goToConfirm = await Client.GetAsync(_confirmLink.Href);
UserStories.cs (1)
276var goToPrivacy = await client.GetAsync("/Privacy");
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
84var response = await client.GetAsync(requestUrl); 130var response = await client.GetAsync("/page"); 206var response = await client.GetAsync(requestUrl);
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
51var response = await client.GetAsync(string.Empty); 92var response = await client.GetAsync(string.Empty); 132var response = await client.GetAsync(string.Empty); 178var response = await client.GetAsync(string.Empty);
CookieRequestCultureProviderTest.cs (5)
67var response = await client.GetAsync(string.Empty); 117var response = await client.GetAsync(string.Empty); 164var response = await client.GetAsync(string.Empty); 217var response = await client.GetAsync(string.Empty); 277var response = await client.GetAsync(string.Empty);
CustomRequestCultureProviderTest.cs (1)
60var response = await client.GetAsync("/ar/page");
QueryStringRequestCultureProviderTest.cs (8)
53var response = await client.GetAsync("/page?culture=ar-SA&ui-culture=ar-YE"); 87var response = await client.GetAsync("/page"); 128var response = await client.GetAsync("/page?culture=ar-XY&ui-culture=ar-SA"); 169var response = await client.GetAsync("/page?culture=ar-SA&ui-culture=ar-XY"); 211var response = await client.GetAsync("/page?ui-culture=ar-SA"); 253var response = await client.GetAsync("/page?culture=ar-SA"); 300var response = await client.GetAsync("/page?c=ar-SA&uic=ar-YE"); 348var response = await client.GetAsync("/page?c=FR&uic=FR");
RequestLocalizationMiddlewareTest.cs (1)
69var response = await client.GetAsync(string.Empty);
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
45await server.CreateClient().GetAsync(string.Empty);
Microsoft.AspNetCore.Mvc.FunctionalTests (428)
AntiforgeryAuthTests.cs (1)
46var response = await Client.GetAsync("http://localhost/Home/Antiforgery");
AntiforgeryTests.cs (6)
34var response = await Client.GetAsync("http://localhost/Antiforgery/Login"); 57var getResponse = await Client.GetAsync("http://localhost/Antiforgery/Login"); 90var response = await Client.GetAsync("http://localhost/Antiforgery/FlushAsyncLogin"); 109var getResponse = await Client.GetAsync("http://localhost/Antiforgery/FlushAsyncLogin"); 140var getResponse = await Client.GetAsync("http://localhost/Antiforgery/Login"); 168var response = await Client.GetAsync("http://localhost/Antiforgery/AntiforgeryTokenAndResponseCaching");
ApiBehaviorTest.cs (9)
190var response = await Client.GetAsync(url); 227var response = await Client.GetAsync(url); 248var response = await Client.GetAsync(url); 266var response = await Client.GetAsync("/contact/ActionWithInferredModelBinderType?foo=Hello!"); 281var response = await Client.GetAsync("/contact/ActionWithInferredModelBinderTypeWithExplicitModelName?bar=Hello!"); 295var response = await Client.GetAsync("/contact/ActionReturningStatusCodeResult"); 324var response = await Client.GetAsync("/contact/ActionReturningStatusCodeResult"); 342var response = await Client.GetAsync("/contact/ActionReturningProblemDetails"); 355var response = await Client.GetAsync("/contact/ActionReturningValidationProblemDetails");
ApiExplorerTest.cs (50)
39var response = await Client.GetAsync("http://localhost/ApiExplorerVisibilityEnabledByConvention"); 52var response = await Client.GetAsync("http://localhost/ApiExplorerVisibilityDisabledByConvention"); 65var response = await Client.GetAsync("http://localhost/ApiExplorerVisibilitySetExplicitly/Disabled"); 78var response = await Client.GetAsync("http://localhost/ApiExplorerVisibilitySetExplicitly/Enabled"); 91var response = await Client.GetAsync("http://localhost/ApiExplorerNameSetByConvention"); 105var response = await Client.GetAsync("http://localhost/ApiExplorerNameSetExplicitly/SetOnController"); 119var response = await Client.GetAsync("http://localhost/ApiExplorerNameSetExplicitly/SetOnAction"); 133var response = await Client.GetAsync("http://localhost/ApiExplorerApiController/ActionWithIdParameter"); 147var response = await Client.GetAsync("http://localhost/ApiExplorerApiController/ActionWithSomeParameters"); 161var response = await Client.GetAsync("http://localhost/ApiExplorerRouteAndPathParametersInformation"); 175var response = await Client.GetAsync("http://localhost/ApiExplorerRouteAndPathParametersInformation/5"); 198var response = await Client.GetAsync(url); 221var response = await Client.GetAsync(url); 243var response = await Client.GetAsync(url); 272var response = await Client.GetAsync(url); 308var response = await Client.GetAsync(url); 343var response = await Client.GetAsync(url); 366var response = await Client.GetAsync( 385var response = await Client.GetAsync("http://localhost/ApiExplorerHttpMethod/All"); 399var response = await Client.GetAsync("http://localhost/ApiExplorerHttpMethod/Get"); 461var response = await Client.GetAsync( 481var response = await Client.GetAsync( 505var response = await Client.GetAsync( 525var response = await Client.GetAsync( 548var response = await Client.GetAsync( 570var response = await Client.GetAsync( 591var response = await Client.GetAsync( 615var response = await Client.GetAsync( 647var response = await Client.GetAsync( 679var response = await Client.GetAsync( 711var response = await Client.GetAsync( 741var response = await Client.GetAsync( 778var response = await Client.GetAsync( 813var response = await Client.GetAsync( 844var response = await Client.GetAsync("http://localhost/ApiExplorerResponseContentType/Unset"); 870var response = await Client.GetAsync("http://localhost/ApiExplorerResponseContentType/Specific"); 894var response = await Client.GetAsync("http://localhost/ApiExplorerResponseContentType/WildcardMatch"); 923var response = await Client.GetAsync("http://localhost/ApiExplorerResponseContentType/NoMatch"); 948var response = await Client.GetAsync( 967var response = await Client.GetAsync("http://localhost/ApiExplorerParameters/SimpleParameters"); 991var response = await Client.GetAsync( 1016var response = await Client.GetAsync("http://localhost/ApiExplorerParameters/SimpleModel"); 1040var response = await Client.GetAsync("http://localhost/ApiExplorerParameters/SimpleModelFromBody/5"); 1064var response = await Client.GetAsync("http://localhost/ApiExplorerParameters/ComplexModel"); 1108var response = await Client.GetAsync("ApiExplorerParameters/DefaultValueParameters"); 1140var response = await Client.GetAsync("ApiExplorerParameters/IsRequiredParameters"); 1186var response = await Client.GetAsync("ApiExplorerReload/Reload"); 1192response = await Client.GetAsync("ApiExplorerReload/Index"); 1538var response = await Client.GetAsync($"http://localhost/ApiExplorerVoid/{path}"); 1559var response = await Client.GetAsync("http://localhost/ApiExplorerHttpMethod/All");
ApplicationModelTest.cs (11)
34var response = await Client.GetAsync("http://localhost/CoolController/GetControllerName"); 47var response = await Client.GetAsync("http://localhost/ActionModel/ActionName"); 60var response = await Client.GetAsync("http://localhost/ParameterModel/GetParameterMetadata"); 73var response = await Client.GetAsync("http://localhost/Home/GetCommonDescription"); 86var response = await Client.GetAsync("http://localhost/ApplicationModel/GetControllerDescription"); 99var response = await Client.GetAsync("http://localhost/ApplicationModel/GetActionSpecificDescription"); 112var response = await Client.GetAsync("http://localhost/License/GetLicense"); 143var response = await Client.GetAsync("Home/CannotBeRouted"); 172var response = await Client.GetAsync("Home/RouteToSuppressPathMatching"); 185var response = await Client.GetAsync(areaName + "/MultipleAreas/Index"); 199var response = await Client.GetAsync("ActionModel/" + actionName);
AsyncActionsTests.cs (26)
34var response = await Client.GetAsync("http://localhost/AsyncActions/AsyncVoidAction"); 46var response = await Client.GetAsync("http://localhost/AsyncActions/TaskAction"); 58var response = await Client.GetAsync("http://localhost/AsyncActions/TaskExceptionAction"); 69var response = await Client.GetAsync("http://localhost/AsyncActions/TaskOfObjectAction?message=Alpha"); 81var response = await Client.GetAsync("http://localhost/AsyncActions/TaskOfObjectExceptionAction?message=Alpha"); 92var response = await Client.GetAsync("http://localhost/AsyncActions/TaskOfIActionResultAction?message=Beta"); 104var response = await Client.GetAsync("http://localhost/AsyncActions/TaskOfIActionResultExceptionAction?message=Beta"); 115var response = await Client.GetAsync("http://localhost/AsyncActions/TaskOfContentResultAction?message=Gamma"); 127var response = await Client.GetAsync("http://localhost/AsyncActions/TaskOfContentResultExceptionAction?message=Gamma"); 138var response = await Client.GetAsync("http://localhost/AsyncActions/PreCompletedValueTaskOfObjectAction?message=Delta"); 150var response = await Client.GetAsync("http://localhost/AsyncActions/PreCompletedValueTaskOfObjectExceptionAction?message=Delta"); 161var response = await Client.GetAsync("http://localhost/AsyncActions/PreCompletedValueTaskOfIActionResultAction?message=Epsilon"); 173var response = await Client.GetAsync("http://localhost/AsyncActions/PreCompletedValueTaskOfIActionResultExceptionAction?message=Epsilon"); 184var response = await Client.GetAsync("http://localhost/AsyncActions/PreCompletedValueTaskOfContentResultAction?message=Zeta"); 196var response = await Client.GetAsync("http://localhost/AsyncActions/PreCompletedValueTaskOfContentResultExceptionAction?message=Zeta"); 207var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableVoidAction"); 219var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableVoidExceptionAction"); 230var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableOfObjectAction?message=Eta"); 242var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableOfObjectExceptionAction?message=Eta"); 253var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableOfIActionResultAction?message=Theta"); 265var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableOfIActionResultExceptionAction?message=Theta"); 276var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableOfContentResultAction?message=Iota"); 288var response = await Client.GetAsync("http://localhost/AsyncActions/CustomAwaitableOfContentResultExceptionAction?message=Iota"); 299var response = await Client.GetAsync("AsyncActions/ActionWithSuffix"); 309var response = await Client.GetAsync("AsyncActions/ActionWithSuffixAsync"); 319var response = await Client.GetAsync("AsyncActions/ActionReturningView");
AsyncDisposalTest.cs (3)
45var response = await Client.GetAsync("http://localhost/Disposal/DisposeMode/Async(false)/Throws(false)"); 57var response = await Client.GetAsync("http://localhost/Disposal/DisposeMode/Async(true)/Throws(true)"); 69var response = await Client.GetAsync("http://localhost/Disposal/DisposeMode/Async(false)/Throws(true)");
AsyncEnumerableTestBase.cs (2)
42var response = await Client.GetAsync($"asyncenumerable/{action}"); 60var response = await Client.GetAsync("asyncenumerable/GetAllProjectsWithError");
AuthMiddlewareAndFilterTestBase.cs (8)
39var response = await Client.GetAsync("AuthorizedActions/ActionWithoutAllowAnonymous"); 49var response = await Client.GetAsync(action); 67var response = await Client.GetAsync(action); 92var response = await Client.GetAsync("AllowAnonymousPageViaConvention"); 102var response = await Client.GetAsync("AllowAnonymousPageViaModel"); 112var response = await Client.GetAsync("PagesHome"); 243var response = await Client.GetAsync(url); 288var response = await Client.GetAsync("/Login/LoginBearerClaimA");
AuthMiddlewareUsingRequireAuthTest.cs (2)
40var response = await Client.GetAsync(action); 59var response = await Client.GetAsync(action);
BasicTests.cs (18)
51var response = await Client.GetAsync("Home/CSharp7View"); 71var response = await Client.GetAsync("PassThrough/Index?value=123"); 95var response = await Client.GetAsync(url); 115var response = await Client.GetAsync("http://localhost/Home/PlainView"); 134var response = await Client.GetAsync("Home/ViewWithPrefixedAttributeValue"); 147var response = await Client.GetAsync("Home/NoContentResult"); 161var response = await Client.GetAsync("Home/ActionReturningTask"); 178var result = await Client.GetAsync("Monitor/CountActionDescriptorInvocations"); 190var response = await Client.GetAsync("Home/HttpsOnlyAction"); 242var response = await Client.GetAsync("Home/JsonHelperInView"); 265var response = await Client.GetAsync("Home/JsonHelperWithSettingsInView?snakeCase=false"); 288var response = await Client.GetAsync("Home/JsonHelperWithSettingsInView?snakeCase=true"); 338var response = await Client.GetAsync("Links/Index?view=" + viewName); 350var response = await Client.GetAsync("Home/GetApplicationDescription"); 362var response = await Client.GetAsync("SqlData/TruncateAllDbRecords"); 421var response = await Client.GetAsync(url); 613var response = await Client.GetAsync("BindPropertiesSupportsGet/Action?Name=OnGetTestName"); 625var response = await Client.GetAsync("BindPropertiesWithValidation/Action?Password=Test&ConfirmPassword=different");
ComponentRenderingFunctionalTests.cs (6)
39var response = await client.GetAsync("http://localhost/components"); 55var response = await client.GetAsync("http://localhost/components/routable"); 72var response = await client.GetAsync("http://localhost/components/Navigation"); 86var response = await client.GetAsync("http://localhost/components/routable"); 102var response = await client.GetAsync("http://localhost/components/throws"); 164var response = await client.GetAsync("http://localhost/components");
ConsumesAttributeEndpointRoutingTests.cs (1)
15var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch");
ConsumesAttributeTests.cs (1)
15var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch");
ContentNegotiationTest.cs (16)
46var response = await Client.GetAsync("http://localhost/Normal/WriteUserUsingCustomFormat"); 63var response = await Client.GetAsync("http://localhost/Normal/MultipleAllowedContentTypes"); 79var response = await Client.GetAsync("http://localhost/Normal/ReturnClassName"); 94var response = await Client.GetAsync("http://localhost/Normal/ReturnUser"); 175var response = await Client.GetAsync(url + "?input=100"); 188var response = await Client.GetAsync("http://localhost/Normal/ReturnUser_NoMatchingFormatter"); 216var response = await Client.GetAsync("http://localhost/ProducesWithMediaTypeParameters/" + action); 239var response = await Client.GetAsync("http://localhost/ProducesContentBase/ReturnClassName"); 256var response = await Client.GetAsync( 274var response = await Client.GetAsync("http://localhost/NoProducesContentOnClass/ReturnClassName"); 291var response = await Client.GetAsync("http://localhost/NoProducesContentOnClass/ReturnClassName"); 308var response = await Client.GetAsync( 325var response = await Client.GetAsync("http://localhost/ProducesJson/Produces_WithNonObjectResult"); 463var response = await Client.GetAsync( 475var response = await Client.GetAsync( 530var response = await Client.GetAsync(
ControllerEndpointFiltersTest.cs (4)
41var response = await client.GetAsync("Items/Index"); 54var response = await client.GetAsync("Items/Index"); 67var response = await client.GetAsync("Items/IndexWithSelectiveFilter"); 79var response = await client.GetAsync("Items/IndexWithArgument/foobar");
ControllerFromServicesTests.cs (1)
112var response = await Client.GetAsync("http://localhost/" + action);
DataAnnotationTests.cs (1)
43var response = await Client.GetAsync(EnumUrl);
ErrorPageTests.cs (6)
63var response = await client.GetAsync("http://localhost/" + action); 98var response = await Client.GetAsync(action); 119var response = await Client.GetAsync("http://localhost/ErrorFromViewImports"); 139var response = await Client.GetAsync("http://localhost/RuntimeError"); 157var response = await Client.GetAsync("http://localhost/LoaderException"); 176var response = await Client.GetAsync("http://localhost/AggregateException");
FileResultTests.cs (8)
39var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromDisk"); 186var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromDiskWithFileName"); 309var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromDiskSymlink"); 326var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromStream"); 407var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromStreamWithFileName"); 527var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromBinaryData"); 611var response = await Client.GetAsync("http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName"); 736var response = await Client.GetAsync("http://localhost/EmbeddedFiles/DownloadFileWithFileName");
FiltersTest.cs (5)
36var response = await Client.GetAsync("AuthorizeUser/AdminRole"); 47var response = await Client.GetAsync("AuthorizeUser/ApiManagers"); 58var response = await Client.GetAsync("AuthorizeUser/Impossible"); 73var response = await Client.GetAsync($"{culture}/Filters/MiddlewareFilterTest"); 120var response = await Client.GetAsync(url);
GlobalAuthorizationFilterTestBase.cs (2)
38var response = await Client.GetAsync("http://localhost/Administration/Index"); 52var response = await Client.GetAsync("http://localhost/Administration/AllowAnonymousAction");
HtmlGenerationTest.cs (5)
109var response = await Client.GetAsync("http://localhost/HtmlGeneration_Home/" + action); 135var response = await Client.GetAsync("HtmlGeneration_Home/image"); 226var response = await client.GetAsync("http://localhost/HtmlGeneration_Home/"); 266var response = await EncodedClient.GetAsync("http://localhost/HtmlGeneration_Home/" + action); 305var response = await Client.GetAsync("http://localhost/CheckViewData/" + action);
HttpActionResultTests.cs (2)
38var response = await Client.GetAsync(url); 52var response = await Client.GetAsync(url);
Infrastructure\HttpClientExtensions.cs (1)
16var response = await client.GetAsync(requestUri);
InputFormatterTests.cs (2)
91var response = await Client.GetAsync("PolymorphicBinding/ModelBound?DerivedProperty=Test"); 103var response = await Client.GetAsync("PolymorphicBinding/ModelBound");
JsonOutputFormatterTestBase.cs (10)
81var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.IntResult)}"); 92var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.StringResult)}"); 103var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.StringWithUnicodeResult)}"); 114var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.StringWithNonAsciiContent)}"); 128var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.SimpleModelResult)}"); 142var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.CollectionModelResult)}"); 156var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.DictionaryResult)}"); 171var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.LargeObjectResult)}"); 184var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.ProblemDetailsResult)}"); 203var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.PolymorphicResult)}");
LinkGenerationTests.cs (2)
61var response = await Client.GetAsync(url); 83var response = await Client.GetAsync("http://localhost/Home/ActionLinkView");
LinkGeneratorTest.cs (18)
41var response = await Client.GetAsync("LG1/LinkToSelf"); 53var response = await Client.GetAsync("LG1/LinkToSelf/17?another-value=5"); 65var response = await Client.GetAsync("LG1/LinkToAnotherAction/17?another-value=5"); 77var response = await Client.GetAsync("LG1/LinkToAnotherController/17?another-value=5"); 89var response = await Client.GetAsync("LG1/LinkToAnArea/17?another-value=5"); 101var response = await Client.GetAsync("Admin/LG3/LinkInsideOfArea/17"); 115var response = await Client.GetAsync("Admin/LG3/LinkInsideOfAreaFail/17?another-value=5"); 127var response = await Client.GetAsync("Admin/LG3/LinkOutsideOfArea/17?another-value=5"); 139var response = await Client.GetAsync("LGAnotherPage/17"); 151var response = await Client.GetAsync("LGPage/17"); 163var response = await Client.GetAsync("LG1/LinkToPage/17?another-value=4"); 175var response = await Client.GetAsync("LG1/LinkToPageWithTransformedPath?id=HelloWorld"); 187var response = await Client.GetAsync("LG1/LinkToPageInArea/17?another-value=4"); 199var response = await Client.GetAsync("LG1/LinkWithFullUri/17"); 211var response = await Client.GetAsync("LG1/LinkWithFullUriWithoutHttpContext/17"); 223var response = await Client.GetAsync("LG1/LinkToPageWithFullUri/17"); 235var response = await Client.GetAsync("LG1/LinkToPageWithFullUriWithoutHttpContext/17"); 247var response = await Client.GetAsync("LG1/LinkToRouteWithNoMvcParameters?custom=17");
LinkParserTest.cs (2)
41var response = await Client.GetAsync("LinkParser/Index/18"); 71var response = await Client.GetAsync("LinkParser/Another?path=%2Fsome-path%2Fa%2Fb%2Fc");
MvcSandboxTest.cs (2)
34var response = await Client.GetAsync("http://localhost"); 44var response = await Client.GetAsync("http://localhost/PagesHome");
NewtonsoftJsonOutputFormatterTest.cs (2)
31var response = await Client.GetAsync("http://localhost/JsonFormatter/ReturnsIndentedJson"); 43var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.SimpleModelResult)}");
NonNullableReferenceTypesTest.cs (3)
38var response = await Client.GetAsync("http://localhost/NonNullable"); 80var response = await Client.GetAsync("http://localhost/NonNullable"); 116var response = await Client.GetAsync("http://localhost/api/NonNullable");
OutputFormatterTest.cs (5)
43var response = await Client.GetAsync("http://localhost/TextPlain/" + actionName); 60var response = await Client.GetAsync("http://localhost/TextPlain/" + actionName); 72var response = await Client.GetAsync("http://localhost/NoContent/" + actionName); 90var response = await Client.GetAsync("http://localhost/NoContent/" + actionName); 109var response = await Client.GetAsync("http://localhost/NoContentDoNotTreatNullValueAsNoContent/" +
PageAsyncDisposalTest.cs (1)
43var response = await Client.GetAsync("http://localhost/AsyncDisposable");
RazorBuildTest.cs (4)
56var response = await Client.GetAsync("http://localhost/Rzc/Page"); 69var response = await Client.GetAsync("Fallback"); 81var response = await Client.GetAsync("http://localhost/Rzc/View"); 94var response = await Client.GetAsync("http://localhost/Common/View");
RazorPagesTest.cs (22)
51var response = await Client.GetAsync("http://localhost/SimpleForms"); 96var getResponse = await Client.GetAsync("http://localhost/HandlerTestPage"); 128var getResponse = await Client.GetAsync("http://localhost/HandlerTestPage"); 209var getResponse = await Client.GetAsync("http://localhost/ModelHandlerTestPage"); 241var getResponse = await Client.GetAsync("http://localhost/ModelHandlerTestPage"); 614var response = await Client.GetAsync(url); 628var response = await Client.GetAsync(url); 957var response = await Client.GetAsync("/Pages/Redirects/RedirectFromPage"); 971var response = await Client.GetAsync("/Pages/Redirects/RedirectFromModel"); 1007var response = await Client.GetAsync("/Pages/Redirects/RedirectFromHandler/RedirectToPage/10"); 1021var response = await Client.GetAsync("/Pages/Redirects/RedirectFromHandler/RedirectToAnotherHandler/11"); 1035var response = await Client.GetAsync("/RedirectToPage"); 1049var response = await Client.GetAsync("/RedirectToController"); 1061var response = await Client.GetAsync("/Pages/Redirects/RedirectToSibling/RedirectToRedirect"); 1073var response = await Client.GetAsync("/Pages/Redirects/RedirectToSibling/RedirectToIndex"); 1085var response = await Client.GetAsync("/Pages/Redirects/RedirectToSibling/RedirectToSubDir"); 1099var response = await Client.GetAsync("/Pages/Redirects/RedirectToSibling/RedirectToDotSlash"); 1111var response = await Client.GetAsync("/Pages/Redirects/RedirectToSibling/RedirectToParent"); 1210var response = await Client.GetAsync("/Pages/ModelWithAuthFilter"); 1248var response = await Client.GetAsync("/ModelWithResponseCache"); 1313var response = await Client.GetAsync(url); 1384var response = await Client.GetAsync("/ModelAsFilter/TestResultFilter");
RazorPagesWithBasePathTest.cs (19)
35var response = await Client.GetAsync("/HelloWorld"); 45var response = await Client.GetAsync("/"); 58var response = await Client.GetAsync("/Index"); 71var response = await Client.GetAsync("/Admin/Index"); 84var response = await Client.GetAsync("/Admin/RouteTemplate/1/MyRouteSuffix/"); 97var response = await Client.GetAsync("/Admin/RouteTemplate/my-user-id/MyRouteSuffix/4"); 110var response = await Client.GetAsync("/Conventions/Auth"); 121var response = await Client.GetAsync("/Conventions/AuthFolder"); 256var response = await Client.GetAsync("/Redirects/Index"); 270var response = await Client.GetAsync("/Redirects/RedirectToIndex"); 389var response = await Client.GetAsync("/Accounts/RequiresAuth"); 416var response = await Client.GetAsync("/CustomModelTypeModel"); 428var getPage = await Client.GetAsync("/CustomModelTypeModel"); 457var getPage = await Client.GetAsync("/CustomModelTypeModel?Attempts=0"); 485var getPage = await Client.GetAsync("/CustomModelTypeModel?Attempts=0"); 687var response = await Client.GetAsync(url); 723using var response = await Client.GetAsync("/Filters/AuthFilterOnPage"); 734using var response = await Client.GetAsync("/Filters/AuthFilterOnPageWithModel"); 745using var response = await Client.GetAsync("/Filters/FiltersAppliedToPageAndPageModel");
RazorPagesWithEndpointRoutingTest.cs (4)
34var response = await Client.GetAsync("/Conventions/AuthFolder"); 45var response = await Client.GetAsync("/Conventions/AuthFolder/AnonymousViaModel"); 58var response = await Client.GetAsync("/ModelWithAuthFilter"); 69var response = await Client.GetAsync("/AuthorizedAction/Index");
RazorViewLocationSpecificationTest.cs (1)
115var content = await (await Client.GetAsync(path)).Content.ReadAsStringAsync();
RemoteAttributeValidationTest.cs (2)
45var response = await Client.GetAsync(url); 70var response = await Client.GetAsync(url);
RequestServicesEndpointRoutingTest.cs (1)
15var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch");
RequestServicesTest.cs (1)
15var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch");
RoutingDynamicTest.cs (2)
151var response = await client.GetAsync(url); 168var response = await client.GetAsync(url);
RoutingEndpointRoutingTest.cs (26)
16var response = await Client.GetAsync("http://localhost/PageRoute/Attribute/pagevalue"); 37var response = await Client.GetAsync("http://localhost/parameter-transformer/my-action"); 53var response = await Client.GetAsync("http://localhost/ParameterTransformer/MyAction"); 63var response = await Client.GetAsync("http://localhost/EndpointRouting/Index"); 79var response = await Client.GetAsync("http://localhost/EndpointRouting"); 95var response = await Client.GetAsync("http://localhost/endpoint-routing/ParameterTransformer"); 111var response = await Client.GetAsync("http://localhost/EndpointRouting/ParameterTransformer"); 124var response = await Client.GetAsync(url); 144var response = await Client.GetAsync(url); 164var response = await Client.GetAsync(url); 184var response = await Client.GetAsync(url); 201var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch"); 216var response = await Client.GetAsync("http://localhost/RouteData/Conventional"); 233var response = await Client.GetAsync("http://localhost/RouteData/Attribute"); 251var response = await Client.GetAsync("http://localhost/Travel/Flight/BuyTickets"); 261var response = await Client.GetAsync("http://localhost/ConventionalTransformerRoute/conventional-transformer/Index"); 276var response = await Client.GetAsync("http://localhost/ConventionalTransformerRoute/ConventionalTransformer/Index"); 286var response = await Client.GetAsync("http://localhost/ConventionalTransformerRoute/conventional-transformer"); 301var response = await Client.GetAsync("http://localhost/ConventionalTransformerRoute/conventional-transformer/Param/my-value"); 321var response = await Client.GetAsync(url); 340var response = await Client.GetAsync(url); 359var response = await Client.GetAsync(url); 377var response = await Client.GetAsync("/EndpointName/LinkToConventionalRouted"); 392var response = await Client.GetAsync("/EndpointName/LinkToConventionalRouted/test"); 407var response = await Client.GetAsync("/EndpointName/LinkToAttributeRouted"); 422var response = await Client.GetAsync("/EndpointName/LinkToAttributeRouted/test");
RoutingGroupsTest.cs (2)
42var response = await client.GetAsync("controllers/contoso/Blog/ShowPosts"); 55var response = await client.GetAsync("pages/PageWithLinks");
RoutingGroupsWithMetadataTest.cs (1)
40var response = await client.GetAsync("group1/metadata");
RoutingTests.cs (3)
17var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch"); 46var response = await Client.GetAsync("http://localhost/RouteData/Conventional"); 68var response = await Client.GetAsync("http://localhost/RouteData/Attribute");
RoutingTestsBase.cs (55)
44var response = await Client.GetAsync(requestUrl); 62var response = await Client.GetAsync("http://localhost/NonParameterConstraintRoute/NonParameterConstraint/Index?allowed=true"); 78var response = await Client.GetAsync("http://localhost/NonParameterConstraintRoute/NonParameterConstraint/Index?allowed=false"); 88var response = await Client.GetAsync("http://localhost/PageRoute/ConventionalRoute/pagevalue"); 111var response = await Client.GetAsync(url); 131var response = await Client.GetAsync(url); 161var response = await Client.GetAsync("http://localhost/RouteData/DataTokens"); 170response = await Client.GetAsync("http://localhost/RouteData/Conventional"); 193var response = await Client.GetAsync("http://localhost/DataTokensRoute/DataTokens/Index"); 205var response = await Client.GetAsync("http://localhost/DataTokens/Index"); 217var response = await Client.GetAsync("http://localhost/page-route-transformer/index"); 227var response = await Client.GetAsync("http://localhost/page-route-transformer"); 237var response = await Client.GetAsync("http://localhost/page-route-transformer/test-page/ExtraPath/World"); 249var response = await Client.GetAsync("http://localhost/PageRouteTransformer/NewConventionRoute/World"); 261var response = await Client.GetAsync("http://localhost/Home/Index"); 285var response = await Client.GetAsync("http://localhost/"); 309var response = await Client.GetAsync("http://localhost/Home/NotAnAction"); 319var response = await Client.GetAsync("http://localhost/Travel/Flight/Index"); 344var response = await Client.GetAsync("http://localhost/Travel/Flight/BuyTickets"); 356var response = await Client.GetAsync("http://localhost/Home/OptionalPath/" + optionalSegment); 371var response = await Client.GetAsync("http://localhost/Store/Shop/Products"); 469var response = await Client.GetAsync(url); 566var response = await Client.GetAsync(url); 620var response = await Client.GetAsync("http://localhost/Store/ListProducts"); 632var response = await Client.GetAsync("http://localhost/Home/About"); 649var response = await Client.GetAsync("http://localhost/Blog/Edit/5"); 679var response = await Client.GetAsync("http://localhost/api/Employee"); 885var response = await Client.GetAsync("http://localhost/Manager/5"); 906var response = await Client.GetAsync("http://localhost/Team/5"); 927var response = await Client.GetAsync("http://localhost/Teams"); 983var response = await Client.GetAsync(url); 1003var response = await Client.GetAsync(url); 1023var response = await Client.GetAsync(url); 1043var response = await Client.GetAsync(url); 1107var response = await Client.GetAsync("http://localhost/api/Company/5/Employees"); 1125var response = await Client.GetAsync("http://localhost/api/Company/5/Departments"); 1147var response = await Client.GetAsync(url); 1168var response = await Client.GetAsync(url); 1189var response = await Client.GetAsync(url); 1211var response = await Client.GetAsync(url); 1233var response = await Client.GetAsync(url); 1255var response = await Client.GetAsync(url); 1277var response = await Client.GetAsync(url); 1297var response = await Client.GetAsync(url); 1318var response = await Client.GetAsync(url); 1339var response = await Client.GetAsync(url); 1359var response = await Client.GetAsync(url); 1380var response = await Client.GetAsync(url); 1401var response = await Client.GetAsync(url); 1422var response = await Client.GetAsync(url); 1443var response = await Client.GetAsync(url); 1464var response = await Client.GetAsync(url); 1558var response = await Client.GetAsync("http://localhost/PageWithLinks"); 1576var response = await Client.GetAsync("/afterrouting"); 1588var response = await Client.GetAsync("/PageParameter/LinkToPageParameter");
RoutingWithoutRazorPagesTestsBase.cs (2)
40var response = await Client.GetAsync("http://localhost/PageRoute/Attribute/pagevalue"); 61var response = await Client.GetAsync("http://localhost/PageRoute/ConventionalRoute/pagevalue");
SimpleWithWebApplicationBuilderTests.cs (6)
59var response = await Client.GetAsync("/json"); 74var response = await Client.GetAsync("/ok-object"); 89var response = await Client.GetAsync("/accepted-object"); 104var response = await Client.GetAsync("/many-results?id=-1"); 116var response = await Client.GetAsync("/many-results?id=7"); 129var response = await Client.GetAsync("/greet");
StreamOutputFormatterTest.cs (1)
38var response = await Client.GetAsync("http://localhost/Stream/" + actionName);
SystemTextJsonOutputFormatterTest.cs (4)
20var response = await Client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.StringWithUnicodeResult)}"); 39var response = await client.GetAsync($"/JsonOutputFormatter/{nameof(JsonOutputFormatterController.StringWithNonAsciiContent)}"); 62var response = await Client.GetAsync($"/SystemTextJsonOutputFormatter/{nameof(SystemTextJsonOutputFormatterController.PolymorphicResult)}"); 77var response = await Client.GetAsync($"/SystemTextJsonOutputFormatter/{nameof(SystemTextJsonOutputFormatterController.AsyncEnumerable)}");
TagHelpersTest.cs (6)
58var response = await Client.GetAsync("http://localhost/Home/" + action); 78var exception = await Assert.ThrowsAsync<HttpRequestException>(async () => await Client.GetAsync("http://localhost/Home/MyHtml")); 95var response = await EncodedClient.GetAsync("http://localhost/Home/UnboundDynamicAttributes"); 115var response = await Client.GetAsync("http://localhost/Employee/DuplicateAntiforgeryTokenRegistration"); 213var response = await Client.GetAsync("http://localhost/Employee/Create"); 292var response = await Client.GetAsync($"/Encoders/{ actionName }");
TempDataInCookiesTest.cs (1)
65var response = await Client.GetAsync($"/TempData/SetLargeValueInTempData?size={size}&character={character}");
TempDataInCookiesUsingCookieConsentTest.cs (1)
46var response = await Client.GetAsync("/TempData/GrantConsent");
TempDataTestBase.cs (6)
192var response = await Client.GetAsync("/TempData/SetTempDataResponseWrite"); 206var response = await Client.GetAsync("/TempData/SetTempDataInActionResult"); 230var response = await Client.GetAsync("/TempData/UnhandledExceptionAndSettingTempData"); 238response = await Client.GetAsync("/TempData/UnhandledExceptionAndGetTempData"); 248var response = await Client.GetAsync("/TempData/UnhandledExceptionAndSettingTempData?handleException=true"); 256response = await Client.GetAsync("/TempData/UnhandledExceptionAndGetTempData");
TestingInfrastructureTests.cs (1)
157var acquireToken = await Client.GetAsync("Testing/AntiforgerySimulator/3");
UrlResolutionTest.cs (2)
47var response = await Client.GetAsync("http://localhost/UrlResolution/Index"); 64var response = await EncodedClient.GetAsync("http://localhost/UrlResolution/Index");
VersioningEndpointRoutingTests.cs (1)
16var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch");
VersioningTests.cs (1)
15var response = await Client.GetAsync("http://localhost/Routing/HasEndpointMatch");
ViewEngineTests.cs (3)
78var response = await Client.GetAsync("http://localhost/ViewEngine/" + actionName); 255var response = await Client.GetAsync("http://localhost/PartialViewEngine/" + actionName); 428var response = await Client.GetAsync("http://localhost/PartialsWithLayout/PartialsRenderedViaPartial");
XmlDataContractSerializerFormattersWrappingTest.cs (4)
232var response = await Client.GetAsync("/api/XmlDataContractApi/ActionReturningClientErrorStatusCodeResult"); 259var response = await Client.GetAsync("/api/XmlDataContractApi/ActionReturningProblemDetails"); 274var response = await Client.GetAsync("/api/XmlDataContractApi/ActionReturningValidationProblem"); 307var response = await Client.GetAsync("/api/XmlDataContractApi/ActionReturningValidationDetailsWithMetadata");
XmlSerializerFormattersWrappingTest.cs (4)
215var response = await Client.GetAsync("/api/XmlSerializerApi/ActionReturningClientErrorStatusCodeResult"); 242var response = await Client.GetAsync("/api/XmlSerializerApi/ActionReturningProblemDetails"); 257var response = await Client.GetAsync("/api/XmlSerializerApi/ActionReturningValidationProblem"); 289var response = await Client.GetAsync("/api/XmlSerializerApi/ActionReturningValidationDetailsWithMetadata");
Microsoft.AspNetCore.OutputCaching.Tests (54)
OutputCacheTests.cs (54)
318var initialResponse = await client.GetAsync(""); 319var subsequentResponse = await client.GetAsync(""); 342var initialResponse = await client.GetAsync(""); 344var subsequentResponse = await client.GetAsync(""); 366var initialResponse = await client.GetAsync("?query=value"); 367var subsequentResponse = await client.GetAsync("?query=value"); 389var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 390var subsequentResponse = await client.GetAsync("?QueryA=valuea&QueryB=valueb"); 412var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 413var subsequentResponse = await client.GetAsync("?QueryA=valuea&QueryB=valueb"); 435var initialResponse = await client.GetAsync("?QueryA=ValueA&QueryB=ValueB"); 436var subsequentResponse = await client.GetAsync("?QueryB=ValueB&QueryA=ValueA"); 458var initialResponse = await client.GetAsync("?QueryA=ValueA&QueryB=ValueB"); 459var subsequentResponse = await client.GetAsync("?QueryB=ValueB&QueryA=ValueA"); 480var initialResponse = await client.GetAsync("?query=value"); 481var subsequentResponse = await client.GetAsync("?query=value2"); 503var initialResponse = await client.GetAsync("?other=value1"); 504var subsequentResponse = await client.GetAsync("?other=value2"); 525var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 526var subsequentResponse = await client.GetAsync("?querya=ValueA&queryb=ValueB"); 547var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 548var subsequentResponse = await client.GetAsync("?querya=ValueA&queryb=ValueB"); 567var initialResponse = await client.GetAsync(""); 572var subsequentResponse = await client.GetAsync(""); 591var initialResponse = await client.GetAsync(""); 596var subsequentResponse = await client.GetAsync("/different"); 616var initialResponse = await client.GetAsync(""); 617var subsequentResponse = await client.GetAsync(""); 636var initialResponse = await client.GetAsync(""); 641var subsequentResponse = await client.GetAsync(""); 664var initialResponse = await client.GetAsync(""); 665var subsequentResponse = await client.GetAsync(""); 684var initialResponse = await client.GetAsync(""); 685var subsequentResponse = await client.GetAsync(""); 710var initialResponse = await client.GetAsync(""); 712var subsequentResponse = await client.GetAsync(""); 733var initialResponse = await client.GetAsync(""); 735var subsequentResponse = await client.GetAsync(""); 759var initialResponse = await client.GetAsync(""); 761var subsequentResponse = await client.GetAsync(""); 782var initialResponse = await client.GetAsync(""); 784var subsequentResponse = await client.GetAsync(""); 809var initialResponse = await client.GetAsync(""); 810var subsequentResponse = await client.GetAsync(""); 832var initialResponse = await client.GetAsync(""); 833var subsequentResponse = await client.GetAsync("/different"); 855var initialResponse = await client.GetAsync("/path"); 856var subsequentResponse = await client.GetAsync("/Path"); 876var initialResponse = await client.GetAsync(""); 878var otherResponse = await client.GetAsync(""); 880var subsequentResponse = await client.GetAsync(""); 903var initialResponse = await client.GetAsync(""); 908var otherResponse = await client.GetAsync(""); 913var subsequentResponse = await client.GetAsync("");
Microsoft.AspNetCore.ResponseCaching.Tests (55)
ResponseCachingTests.cs (55)
281var initialResponse = await client.GetAsync(""); 282var subsequentResponse = await client.GetAsync(""); 304var initialResponse = await client.GetAsync(""); 306var subsequentResponse = await client.GetAsync(""); 327var initialResponse = await client.GetAsync("?query=value"); 328var subsequentResponse = await client.GetAsync("?query=value"); 349var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 350var subsequentResponse = await client.GetAsync("?QueryA=valuea&QueryB=valueb"); 371var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 372var subsequentResponse = await client.GetAsync("?QueryA=valuea&QueryB=valueb"); 393var initialResponse = await client.GetAsync("?QueryA=ValueA&QueryB=ValueB"); 394var subsequentResponse = await client.GetAsync("?QueryB=ValueB&QueryA=ValueA"); 415var initialResponse = await client.GetAsync("?QueryA=ValueA&QueryB=ValueB"); 416var subsequentResponse = await client.GetAsync("?QueryB=ValueB&QueryA=ValueA"); 437var initialResponse = await client.GetAsync("?query=value"); 438var subsequentResponse = await client.GetAsync("?query=value2"); 459var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 460var subsequentResponse = await client.GetAsync("?querya=ValueA&queryb=ValueB"); 481var initialResponse = await client.GetAsync("?querya=valuea&queryb=valueb"); 482var subsequentResponse = await client.GetAsync("?querya=ValueA&queryb=ValueB"); 503var initialResponse = await client.GetAsync(""); 508var subsequentResponse = await client.GetAsync(""); 529var initialResponse = await client.GetAsync(""); 534var subsequentResponse = await client.GetAsync("/different"); 556var initialResponse = await client.GetAsync(""); 557var subsequentResponse = await client.GetAsync(""); 578var initialResponse = await client.GetAsync(""); 583var subsequentResponse = await client.GetAsync(""); 608var initialResponse = await client.GetAsync(""); 609var subsequentResponse = await client.GetAsync(""); 630var initialResponse = await client.GetAsync(""); 631var subsequentResponse = await client.GetAsync(""); 657var initialResponse = await client.GetAsync("?Expires=90"); 659var subsequentResponse = await client.GetAsync(""); 682var initialResponse = await client.GetAsync(""); 684var subsequentResponse = await client.GetAsync(""); 710var initialResponse = await client.GetAsync("?Expires=90"); 712var subsequentResponse = await client.GetAsync(""); 735var initialResponse = await client.GetAsync(""); 737var subsequentResponse = await client.GetAsync(""); 761var initialResponse = await client.GetAsync(""); 762var subsequentResponse = await client.GetAsync(""); 786var initialResponse = await client.GetAsync(""); 787var subsequentResponse = await client.GetAsync("/different"); 811var initialResponse = await client.GetAsync("/path"); 812var subsequentResponse = await client.GetAsync("/Path"); 834var initialResponse = await client.GetAsync(""); 836var otherResponse = await client.GetAsync(""); 838var subsequentResponse = await client.GetAsync(""); 863var initialResponse = await client.GetAsync(""); 868var otherResponse = await client.GetAsync(""); 873var subsequentResponse = await client.GetAsync(""); 898var initialResponse = await client.GetAsync(""); 903var otherResponse = await client.GetAsync(""); 908var subsequentResponse = await client.GetAsync("");
Microsoft.AspNetCore.Rewrite.Tests (19)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (4)
350var response = await server.CreateClient().GetAsync(input); 378var response = await server.CreateClient().GetAsync(input); 433var response = await server.CreateClient().GetAsync(""); 462var response = await server.CreateClient().GetAsync("/home?report_id=123");
IISUrlRewrite\MiddleWareTests.cs (10)
45var response = await server.CreateClient().GetAsync("article/10/hey"); 145var response = await server.CreateClient().GetAsync("HElLo"); 180var response = await server.CreateClient().GetAsync("hey/hello/"); 215var response = await server.CreateClient().GetAsync("hey/hello"); 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")); 692var response = await server.CreateClient().GetAsync("article/10/hey");
MiddlewareTests.cs (5)
172var response = await server.CreateClient().GetAsync(requestUrl); 202var response = await server.CreateClient().GetAsync("foo"); 226var response = await server.CreateClient().GetAsync("foo?bar=1"); 633var response = await server.CreateClient().GetAsync(""); 724var response = await server.CreateClient().GetAsync("");
Microsoft.AspNetCore.Routing.FunctionalTests (15)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
46var response = await _client.GetAsync("/plaintext");
Benchmarks\RouterBenchmarkTest.cs (1)
47var response = await _client.GetAsync("/plaintext");
EndpointRoutingSampleTest.cs (12)
53var response = await _client.GetAsync("/"); 70var response = await _client.GetAsync("/plaintext"); 89var response = await _client.GetAsync("/helloworld"); 107var response = await _client.GetAsync("/withconstraints/555_001"); 120var response = await _client.GetAsync("/withconstraints/555"); 133var response = await _client.GetAsync("/withoptionalconstraints/555_001"); 149var response = await _client.GetAsync("/withoptionalconstraints"); 162var response = await _client.GetAsync("/withoptionalconstraints/555"); 176var response = await _client.GetAsync(url); 194var response = await _client.GetAsync(url); 207var response = await _client.GetAsync("/WithDoubleAsteriskCatchAll/a/b b1/c c1"); 220var response = await _client.GetAsync("/convention");
RouteHandlerTest.cs (1)
96var response = await client.GetAsync("/");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (18)
AuthenticationTests.cs (1)
463return await client.GetAsync(uri);
Http3Tests.cs (4)
116var response2 = await client.GetAsync(address); 148var response = await client.GetAsync(address); 176var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(address)); 256var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(address));
Listener\AuthenticationOnExistingQueueTests.cs (1)
224return await client.GetAsync(uri);
Listener\ServerTests.cs (2)
32var responseTask = client.GetAsync(address); 61var responseTask = client.GetAsync(address);
OpaqueUpgradeTests.cs (1)
373return await client.GetAsync(uri);
RequestHeaderTests.cs (1)
240var result = await client.GetAsync(uri);
ResponseBodyTests.cs (1)
441return await client.GetAsync(uri);
ResponseCachingTests.cs (2)
473var response = await client.GetAsync(uri); 488var response = await client.GetAsync(uri);
ResponseHeaderTests.cs (2)
130var response = await httpClient.GetAsync(address); 331return await client.GetAsync(uri);
ResponseTests.cs (1)
283return await client.GetAsync(uri);
ResponseTrailersTests.cs (1)
365return await client.GetAsync(uri);
ServerTests.cs (1)
372HttpResponseMessage response = await client4.GetAsync(address);
Microsoft.AspNetCore.Session.Tests (21)
SessionTests.cs (21)
55var response = await client.GetAsync(string.Empty); 92var response = await client.GetAsync(string.Empty); 147var response = await client.GetAsync(requestUri); 198var response = await client.GetAsync("first"); 258var response = await client.GetAsync("first"); 316var response = await client.GetAsync("first"); 362var response = await client.GetAsync(string.Empty); 421var response = await client.GetAsync("first"); 490var response = await client.GetAsync("AddDataToSession"); 546var response = await client.GetAsync(string.Empty); 596var response = await client.GetAsync(string.Empty); 632var response = await client.GetAsync(string.Empty); 677var response = await client.GetAsync(string.Empty); 726var response = await client.GetAsync(string.Empty); 775var response = await client.GetAsync(string.Empty); 823var response = await client.GetAsync(string.Empty); 875var response = await client.GetAsync(string.Empty); 938var response = await client.GetAsync(string.Empty); 1004var response = await client.GetAsync(string.Empty); 1069var response = await client.GetAsync(string.Empty); 1121var response = await client.GetAsync(string.Empty);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
1478var httpResponse = await new HttpClient().GetAsync(server.Url + "/generateJwtToken"); 2695var httpResponse = await new HttpClient().GetAsync(server.Url + $"/generateJwtToken/{userName}");
Microsoft.AspNetCore.SignalR.Tests (2)
EndToEndTests.cs (2)
481var response = await client.GetAsync("generatetoken?user=bob"); 655var response = await client.GetAsync("generatetoken?user=bob");
Microsoft.AspNetCore.StaticAssets.Tests (14)
StaticAssetsIntegrationTests.cs (14)
61var response = await client.GetAsync("/sample.txt"); 111var response = await client.GetAsync("/sample.txt"); 163var response = await client.GetAsync("/sample.txt"); 226var response = await client.GetAsync("/has-integrity"); 283var response = await client.GetAsync("/has-integrity"); 332var response = await client.GetAsync("/sample.txt"); 385var response = await client.GetAsync("/sample.txt"); 623var response = await client.GetAsync("http://localhost/sample.txt"); 633var response1 = await client.GetAsync("http://localhost/sample.txt"); 634var response2 = await client.GetAsync("http://localhost/sample.txt"); 662var original = await client.GetAsync("http://localhost/sample.txt"); 711var resp1 = await client.GetAsync("http://localhost/sample.txt"); 724var resp1 = await client.GetAsync("http://localhost/sample.txt"); 737var resp1 = await client.GetAsync("http://localhost/sample.txt");
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (4)
59var response = await client.GetAsync("hello"); 65response = await client.GetAsync("/"); 108var response = await client.GetAsync("hello"); 114response = await client.GetAsync("prefix/Some-Path");
StaticFileMiddlewareTests.cs (4)
38var response = await client.GetAsync("TestDocument.txt"); 83var response = await client.GetAsync("TestDocument.txt"); 109var response = await client.GetAsync("TestDocument.txt"); 159var response = await client.GetAsync(requestUrl);
Microsoft.AspNetCore.StaticFiles.Tests (27)
CacheHeaderTests.cs (7)
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"); 62HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 114HttpResponseMessage resp1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 128HttpResponseMessage resp1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml"); 142HttpResponseMessage resp1 = await server.CreateClient().GetAsync("http://localhost/SubFolder/extra.xml");
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 (10)
21HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 42HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 63HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 80HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 97HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 114HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 169HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 188HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 208HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt"); 235HttpResponseMessage original = await server.CreateClient().GetAsync("http://localhost/SubFolder/ranges.txt");
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.Tests (32)
ClientHandlerTests.cs (10)
41await httpClient.GetAsync("https://example.com/api/a%2Fb%20c"); 67return httpClient.GetAsync("https://example.com/A/Path/and/file.txt?and=query"); 92return httpClient.GetAsync("https://example.com/A/Path/and/file.txt?and=query"); 106return httpClient.GetAsync("https://example.com/"); 123return httpClient.GetAsync("http://example.com"); 157return httpClient.GetAsync("http://example.com"); 274return httpClient.GetAsync("https://example.com/A/Path/and/file.txt?and=query"); 289return httpClient.GetAsync("https://example.com/A/Path/and/file.txt?and=query"); 379HttpResponseMessage response = await httpClient.GetAsync("https://example.com/"); 393Task<HttpResponseMessage> task = httpClient.GetAsync("https://example.com/");
ResponseBodyTests.cs (6)
27var response = await host.GetTestServer().CreateClient().GetAsync("/"); 44var response = await host.GetTestServer().CreateClient().GetAsync("/"); 61var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => client.GetAsync("/")); 79var response = await client.GetAsync("/"); 97var requestException = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync("/")); 118var response = await client.GetAsync("/");
ResponseResetTests.cs (4)
30var response = await client.GetAsync("/"); 46var response = await client.GetAsync("/"); 62var response = await client.GetAsync("/"); 81var rex = await Assert.ThrowsAsync<HttpResetTestException>(() => client.GetAsync("/"));
TestClientTests.cs (3)
152var response = await client.GetAsync("http://localhost:12345"); 905var resp = await client.GetAsync("/"); 933var resp = await client.GetAsync("/");
TestServerTests.cs (9)
39var response = await host.GetTestServer().CreateClient().GetAsync("/"); 55var response = await host.GetTestServer().CreateClient().GetAsync("/"); 71var response = await host.GetTestClient().GetAsync("/"); 654HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 672HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 675await Assert.ThrowsAsync<ObjectDisposedException>(() => server.CreateClient().GetAsync("/")); 702HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 715HttpResponseMessage result = await server.CreateClient().GetAsync("/"); 765await Assert.ThrowsAsync<Exception>(() => server.CreateClient().GetAsync("/path"));
Microsoft.AspNetCore.Testing.Tests (4)
FakesExtensionsTests.cs (4)
65Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode); 79Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode); 164Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode); 176Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode);
Microsoft.AspNetCore.Tests (23)
WebApplicationTests.cs (22)
1455var result = await client.GetAsync("http://localhost/"); 1604var oldResult = await client.GetAsync("http://localhost/old"); 1675var definedResult = await client.GetAsync("http://localhost/defined"); 1678var terminalResult = await client.GetAsync("http://localhost/undefined"); 1702_ = await client.GetAsync("http://localhost/"); 1705var response = await client.GetAsync("http://localhost/1"); 1740_ = await client.GetAsync("http://localhost/"); 1743_ = await client.GetAsync("http://localhost/1"); 1913_ = await client.GetAsync("http://localhost/"); 1940_ = await client.GetAsync("http://localhost/"); 2001_ = await client.GetAsync("http://localhost/hi"); 2005_ = await client.GetAsync("http://localhost/h3"); 2037var response = await client.GetAsync("/"); 2058var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => client.GetAsync("/")); 2089var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => client.GetAsync("/")); 2143var response = await client.GetAsync("/notAnInt"); 2168var response = await client.GetAsync("/notAnInt"); 2557_ = await client.GetAsync("https://localhost/products/abcd1234"); 2583_ = await client.GetAsync("https://localhost/products/abcd"); 2603_ = await client.GetAsync("https://localhost/products/abcd1234"); 2636_ = await client.GetAsync("https://localhost/products/abcd1234"); 2666_ = await client.GetAsync("https://localhost/products/abcd1234");
WebHostTests.cs (1)
82var result = await client.GetAsync("http://localhost/");
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
164return client.GetAsync(result.ApplicationBaseUri);
Microsoft.DotNet.Build.Tasks.Feed (2)
src\common\AzureStorageUtils.cs (1)
255using (HttpResponseMessage response = await client.GetAsync(packageContentUrl))
src\common\GeneralUtils.cs (1)
151HttpResponseMessage response = await httpClient.GetAsync(feedUrl);
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.Helix.Sdk (1)
FindDotNetCliPackage.cs (1)
242response = await _client.GetAsync($"{uri}{sasToken}");
Microsoft.DotNet.VersionTools (11)
Automation\GitHubApi\GitHubClient.cs (6)
74using (HttpResponseMessage response = await _httpClient.GetAsync(url)) 233using (HttpResponseMessage response = await _httpClient.GetAsync(queryUrl)) 257using (HttpResponseMessage response = await _httpClient.GetAsync(pullRequestUrl)) 267using (HttpResponseMessage response = await _httpClient.GetAsync(url)) 296using (HttpResponseMessage response = await _httpClient.GetAsync(url)) 307using (HttpResponseMessage response = await _httpClient.GetAsync(url))
Automation\VstsApi\VstsAdapterClient.cs (4)
198using (HttpResponseMessage response = await _httpClient.GetAsync(url)) 281using (HttpResponseMessage response = await _httpClient.GetAsync(url)) 313using (HttpResponseMessage response = await _httpClient.GetAsync(url)) 391using (HttpResponseMessage response = await _httpClient.GetAsync(url))
BuildInfo.cs (1)
197HttpResponseMessage response = await client.GetAsync(url);
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
210var response = await client.GetAsync(url).ConfigureAwait(false);
Microsoft.ML.PerformanceTests (2)
ImageClassificationBench.cs (2)
171var response = client.GetAsync(url).Result; 180var response = client.GetAsync(url).Result;
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
21var response = await client.GetAsync(url);
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
21var response = await client.GetAsync(url);
Negotiate.Client (9)
Controllers\AuthTestController.cs (9)
34var result = await client.GetAsync("auth/Unrestricted"); 55var result = await client.GetAsync("auth/Authorized"); 83var result = await client.GetAsync("auth/Authorized"); 106var result = await client.GetAsync("auth/Authorized"); 139var result = await client.GetAsync("auth/Authorized"); 172var result = await client.GetAsync("auth/Authorized"); 203var result = await client.GetAsync("auth/Unauthorized"); 229var result = await client.GetAsync("auth/Authorized"); 240result = await client.GetAsync("auth/Unauthorized");
ServerComparison.FunctionalTests (12)
HelloWorldTest.cs (2)
66return deploymentResult.HttpClient.GetAsync(string.Empty); 152return deploymentResult.HttpClient.GetAsync("/throwexception");
NtlmAuthenticationTest.cs (6)
53return httpClient.GetAsync(string.Empty); 62response = await httpClient.GetAsync("/Anonymous"); 67response = await httpClient.GetAsync("/Restricted"); 81response = await httpClient.GetAsync("/Forbidden"); 90response = await httpClient.GetAsync("/Restricted"); 96response = await httpClient.GetAsync("/Forbidden");
ResponseCompressionTests.cs (1)
144return httpClient.GetAsync(string.Empty);
ResponseTests.cs (3)
106return deploymentResult.HttpClient.GetAsync(string.Empty); 154var response = await client.GetAsync("connectionclose"); 249var response = await client.GetAsync("manuallychunkedandclose");
Sockets.FunctionalTests (5)
SocketTransportTests.cs (1)
55var response = await client.GetAsync($"http://127.0.0.1:{host.GetPort()}/");
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
187var response = await client.GetAsync($"http://127.0.0.1:{host.GetPort()}/"); 1123var response = await client.GetAsync($"http://{requestAddress}:{host.GetPort()}/");
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (2)
78var response = await client.GetAsync($"http://127.0.0.1:{host.GetPort()}/"); 127var response = await client.GetAsync($"http://127.0.0.1:{host.GetPort()}/");
Stress.ApiService (1)
Program.cs (1)
94var response = await client.GetAsync(url);
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
65/// e.g.: <see cref="GetAsync(string?)" />, <see cref="PostAsync(string?, HttpContent)" />.
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
182return await _httpClient.GetAsync(anchor.Href);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
182return await _httpClient.GetAsync(anchor.Href);
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
182return await _httpClient.GetAsync(anchor.Href);
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
182return await _httpClient.GetAsync(anchor.Href);
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
182return await _httpClient.GetAsync(anchor.Href);