410 references to GetStringAsync
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
43var envSecretMessage = await client.GetStringAsync("/ENV_SECRET.txt"); 74var message = await client.GetStringAsync("/aspire.html"); 107var message = await client.GetStringAsync("/aspire.html"); 139var message = await client.GetStringAsync("/aspire.html"); 367var message = await client.GetStringAsync("/aspire.html"); 437var message = await client.GetStringAsync("/aspire.html");
Aspire.Hosting.Tests (6)
DistributedApplicationTests.cs (6)
200await Task.WhenAll(clientA.GetStringAsync("/pid"), clientC.GetStringAsync("/pid")).DefaultTimeout(TestConstants.LongTimeoutDuration); 213var pidText = await clientB.GetStringAsync(url).DefaultTimeout(); 703var result = await client.GetStringAsync("pid").DefaultTimeout(TestConstants.LongTimeoutDuration); 714await client2.GetStringAsync("http://localhost:5156/pid"); 813await clientA.GetStringAsync("/").DefaultTimeout();
IIS.FunctionalTests (31)
Http3Tests.cs (1)
98var response3 = await client.GetStringAsync(address);
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (2)
64var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses"); 79var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (2)
362var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_Http1_NotSupported"); 376var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_PriorOSVersions_NotSupported");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
47var id1 = await result.HttpClient.GetStringAsync("/app1/ProcessId"); 48var id2 = await result.HttpClient.GetStringAsync("/app2/ProcessId");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (23)
389Assert.Equal("SlowOnCompleted", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext")); 390Assert.Equal("", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext_Completed")); 410Assert.Equal("SERVER_PORT: " + port, await _fixture.Client.GetStringAsync("/ServerVariable?q=SERVER_PORT")); 411Assert.Equal("QUERY_STRING: q=QUERY_STRING", await _fixture.Client.GetStringAsync("/ServerVariable?q=QUERY_STRING")); 417Assert.Equal("THIS_VAR_IS_UNDEFINED: (null)", await _fixture.Client.GetStringAsync("/ServerVariable?q=THIS_VAR_IS_UNDEFINED")); 423Assert.Equal("ROUNDTRIP: 1", await _fixture.Client.GetStringAsync("/ServerVariable?v=1&q=ROUNDTRIP")); 429Assert.DoesNotContain(@"\\?\", await _fixture.Client.GetStringAsync("/BasePath")); 446var result = await _fixture.Client.GetStringAsync($"/TestRequestHeaders"); 465var result = await _fixture.Client.GetStringAsync($"/TestInvalidReadOperations{operation}"); 474var result = await _fixture.Client.GetStringAsync($"/TestValidReadOperations{operation}"); 495var result = await _fixture.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}"); 502var result = await _fixture.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer"); 600Assert.Equal($"Started_{path}Threw_Finished", await _fixture.Client.GetStringAsync("/ResponseInvalidOrdering/" + path)); 607Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.Client.GetStringAsync("/ContentRootPath")); 608Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath")); 609Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 610Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/BaseDirectory")); 611Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 633Assert.Equal(expected, await _fixture.Client.GetStringAsync($"/{endpoint}")); 643Assert.Equal(new string('a', query), await _fixture.Client.GetStringAsync($"/LargeResponseBody?length={query}")); 649Assert.Equal(200000000, (await _fixture.Client.GetStringAsync($"/LargeResponseFile")).Length); 658Assert.Equal("Success", await _fixture.Client.GetStringAsync(path + "/path" + "?query")); 666Assert.Equal(_fixture.Client.BaseAddress.ToString(), await _fixture.Client.GetStringAsync("/ServerAddresses"));
IIS.LongTests (17)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (5)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses")); 1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT")); 1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT")); 1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
IIS.NewHandler.FunctionalTests (17)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (5)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses")); 1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT")); 1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT")); 1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
IIS.NewShim.FunctionalTests (17)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (5)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses")); 1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT")); 1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT")); 1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
IIS.Tests (4)
ConnectionIdFeatureTests.cs (1)
27await testServer.HttpClient.GetStringAsync("/");
HttpBodyControlFeatureTests.cs (1)
49await testServer.HttpClient.GetStringAsync("/");
TlsHandshakeFeatureTests.cs (2)
27await testServer.HttpClient.GetStringAsync("/"); 71await testServer.HttpClient.GetStringAsync("/");
IISExpress.FunctionalTests (46)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (2)
64var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses"); 79var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (2)
362var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_Http1_NotSupported"); 376var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_PriorOSVersions_NotSupported");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
47var id1 = await result.HttpClient.GetStringAsync("/app1/ProcessId"); 48var id2 = await result.HttpClient.GetStringAsync("/app2/ProcessId");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (23)
389Assert.Equal("SlowOnCompleted", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext")); 390Assert.Equal("", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext_Completed")); 410Assert.Equal("SERVER_PORT: " + port, await _fixture.Client.GetStringAsync("/ServerVariable?q=SERVER_PORT")); 411Assert.Equal("QUERY_STRING: q=QUERY_STRING", await _fixture.Client.GetStringAsync("/ServerVariable?q=QUERY_STRING")); 417Assert.Equal("THIS_VAR_IS_UNDEFINED: (null)", await _fixture.Client.GetStringAsync("/ServerVariable?q=THIS_VAR_IS_UNDEFINED")); 423Assert.Equal("ROUNDTRIP: 1", await _fixture.Client.GetStringAsync("/ServerVariable?v=1&q=ROUNDTRIP")); 429Assert.DoesNotContain(@"\\?\", await _fixture.Client.GetStringAsync("/BasePath")); 446var result = await _fixture.Client.GetStringAsync($"/TestRequestHeaders"); 465var result = await _fixture.Client.GetStringAsync($"/TestInvalidReadOperations{operation}"); 474var result = await _fixture.Client.GetStringAsync($"/TestValidReadOperations{operation}"); 495var result = await _fixture.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}"); 502var result = await _fixture.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer"); 600Assert.Equal($"Started_{path}Threw_Finished", await _fixture.Client.GetStringAsync("/ResponseInvalidOrdering/" + path)); 607Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.Client.GetStringAsync("/ContentRootPath")); 608Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath")); 609Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 610Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/BaseDirectory")); 611Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 633Assert.Equal(expected, await _fixture.Client.GetStringAsync($"/{endpoint}")); 643Assert.Equal(new string('a', query), await _fixture.Client.GetStringAsync($"/LargeResponseBody?length={query}")); 649Assert.Equal(200000000, (await _fixture.Client.GetStringAsync($"/LargeResponseFile")).Length); 658Assert.Equal("Success", await _fixture.Client.GetStringAsync(path + "/path" + "?query")); 666Assert.Equal(_fixture.Client.BaseAddress.ToString(), await _fixture.Client.GetStringAsync("/ServerAddresses"));
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (5)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses")); 1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT")); 1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT")); 1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
Interop.FunctionalTests (2)
HttpClientHttp2InteropTests.cs (2)
1327var responseBody = await client.GetStringAsync(url).DefaultTimeout(); 1361var responseBody = await client.GetStringAsync(url).DefaultTimeout();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
424var jsonResponse = await httpClient.GetStringAsync($"{_browserHost}/json");
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UsePathBaseExtensionsTests.cs (3)
161var response = await server.CreateClient().GetStringAsync("/base/path"); 183var response = await server.CreateClient().GetStringAsync("/base/path"); 203var response = await server.CreateClient().GetStringAsync("/base/path");
Microsoft.AspNetCore.Identity.FunctionalTests (11)
MapIdentityApiTests.cs (11)
125Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 157Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 191Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 196Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 224Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 264Assert.Equal($"Hello, {Email}!", await client.GetStringAsync($"/auth/hello?accessToken={accessToken}")); 268Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 304Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 374Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello")); 419Assert.Equal($"Hello, {newUsername}!", await client.GetStringAsync("/auth/hello")); 708Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
85var cdnContent = await _httpClient.GetStringAsync(scriptTag.Src);
Microsoft.AspNetCore.Mvc.FunctionalTests (166)
ApiExplorerTest.cs (7)
1177var body = await Client.GetStringAsync("ApiExplorerReload/Index"); 1198body = await Client.GetStringAsync("ApiExplorerReload/NewIndex"); 1211var body = await Client.GetStringAsync("ApiExplorerInboundOutbound/SuppressedForLinkGeneration"); 1224var body = await Client.GetStringAsync("ApiExplorerApiController/ActionWithFormFileCollectionParameter"); 1240var body = await Client.GetStringAsync("ApiExplorerApiController/ProducesWithUnsupportedContentType"); 1267var response = await Client.GetStringAsync( 1301var response = await Client.GetStringAsync(
ApplicationModelTest.cs (2)
153var response = await Client.GetStringAsync("Home/CanBeRouted"); 164() => Client.GetStringAsync("Home/RouteToSuppressLinkGeneration"));
BasicTests.cs (7)
375var response = await Client.GetStringAsync("/PageRoute/ConventionalRouteView/mypage"); 388var response = await Client.GetStringAsync("/PageRoute/AttributeView/test-page"); 411var responseBody = await Client.GetStringAsync("/Home/Product"); 434var response = await Client.GetStringAsync(url); 448var response = await Client.GetStringAsync(url); 459var response = await Client.GetStringAsync("Testing/Builder"); 469var response = await Client.GetStringAsync("Home/GetAssemblyPartData");
ClientValidationOptionsTests.cs (2)
36var view = await client.GetStringAsync("Controller/ClientValidationDisabled"); 37var page = await client.GetStringAsync("ClientvalidationDisabled");
CompilationOptionsTests.cs (1)
40var body = await Client.GetStringAsync("http://localhost/ViewsConsumingCompilationOptions/");
ControllerFromServicesTests.cs (3)
53var response = await Client.GetStringAsync("http://localhost/schedule/23"); 66var response = await Client.GetStringAsync("http://localhost/inventory/"); 125var response = await Client.GetStringAsync("http://localhost/another/");
DefaultValuesTest.cs (7)
37var response = await Client.GetStringAsync(url); 51var response = await Client.GetStringAsync(url); 65var response = await Client.GetStringAsync(url); 79var response = await Client.GetStringAsync(url); 93var response = await Client.GetStringAsync(url); 109var response = await Client.GetStringAsync(url); 123var response = await Client.GetStringAsync(url);
DirectivesTest.cs (3)
36var body = await Client.GetStringAsync( 50var body = await Client.GetStringAsync("http://localhost/Directives/ViewInheritsBasePageFromViewImports"); 65var body = await Client.GetStringAsync("Directives/ViewReplacesTModelTokenFromInheritedBasePages");
FiltersTest.cs (1)
107var response = await Client.GetStringAsync(url);
FlushPointTest.cs (4)
42var body = await Client.GetStringAsync("http://localhost/FlushPoint/PageWithLayout"); 89var body = await Client.GetStringAsync("http://localhost/FlushPoint/PageWithoutLayout"); 115var body = await Client.GetStringAsync("http://localhost/FlushPoint/" + action); 134var body = await Client.GetStringAsync("http://localhost/FlushPoint/PageWithNestedLayout");
HtmlGenerationTest.cs (26)
91var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/Enum"); 478var response1 = await Client.GetStringAsync("/catalog/2"); 486var response2 = await Client.GetStringAsync("/catalog/3"); 497var response1 = await Client.GetStringAsync("/catalog/cart?correlationid=1"); 514var response3 = await Client.GetStringAsync("/catalog/cart?correlationid=3"); 524var response1 = await Client.GetStringAsync( 532var response2 = await Client.GetStringAsync( 540var response3 = await Client.GetStringAsync( 547var response4 = await Client.GetStringAsync( 555response1 = await Client.GetStringAsync( 557response2 = await Client.GetStringAsync( 559response3 = await Client.GetStringAsync( 561response4 = await Client.GetStringAsync( 575var response1 = await Client.GetStringAsync("/catalog/past-purchases/test1?correlationid=1"); 576var response2 = await Client.GetStringAsync("/catalog/past-purchases/test1?correlationid=2"); 584var response3 = await Client.GetStringAsync("/catalog/past-purchases/test2?correlationid=3"); 585var response4 = await Client.GetStringAsync("/catalog/past-purchases/test2?correlationid=4"); 597var response1 = await Client.GetStringAsync("/categories/Books?correlationId=1"); 606var response2 = await Client.GetStringAsync("/categories/Electronics?correlationId=2"); 621var response3 = await Client.GetStringAsync("/categories/Electronics?correlationId=3"); 634var response1 = await Client.GetStringAsync("/catalog/GetDealPercentage/20?isEnabled=true"); 635var response2 = await Client.GetStringAsync("/catalog/GetDealPercentage/40?isEnabled=true"); 636var response3 = await Client.GetStringAsync("/catalog/GetDealPercentage/30?isEnabled=false"); 656var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/ItemUsingSharedEditorTemplate"); 670var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/ItemUsingModelSpecificEditorTemplate"); 694var response = await Client.GetStringAsync(url);
HtmlHelperOptionsTest.cs (2)
56var body = await Client.GetStringAsync("http://localhost/HtmlHelperOptions/HtmlHelperOptionsDefaultsInView"); 88var body = await Client.GetStringAsync("http://localhost/HtmlHelperOptions/OverrideAppWideDefaultsInView");
RazorBuildTest.cs (7)
112var body = await Client.GetStringAsync("/UpdateableViews"); 119body = await Client.GetStringAsync("/UpdateableViews"); 127body = await Client.GetStringAsync("/UpdateableViews"); 135body = await Client.GetStringAsync("/UpdateableViews"); 150var body = await Client.GetStringAsync("/UpdateablePage"); 158body = await Client.GetStringAsync("/UpdateablePage"); 166body = await Client.GetStringAsync("/UpdateablePage");
RazorPagesNamespaceTest.cs (3)
38var content = await Client.GetStringAsync("http://localhost/DefaultNamespace"); 48var content = await Client.GetStringAsync("http://localhost/Pages/Namespace/Nested/Folder"); 58var content = await Client.GetStringAsync("http://localhost/Pages/Namespace/Nested/Override");
RazorPagesTest.cs (28)
66var content = await Client.GetStringAsync("http://localhost/HandlerTestPage?handler=Customer"); 76var content = await Client.GetStringAsync("http://localhost/HandlerTestPage/Customer?handler=ViewCustomer"); 86var content = await Client.GetStringAsync("http://localhost/HandlerTestPage/Customer"); 118var content = await Client.GetStringAsync("http://localhost/HandlerTestPage/ViewCustomer"); 189var content = await Client.GetStringAsync("http://localhost/HandlerTestPage/CustomActionResult"); 199var content = await Client.GetStringAsync("http://localhost/ModelHandlerTestPage/Customer"); 231var content = await Client.GetStringAsync("http://localhost/ModelHandlerTestPage/ViewCustomer"); 262var content = await Client.GetStringAsync("http://localhost/ModelHandlerTestPage/CustomActionResult"); 456var content = await Client.GetStringAsync(url); 646var response = await Client.GetStringAsync("/Pages/WithViewStart"); 660var response = await Client.GetStringAsync("/Pages/WithViewImport"); 944var response = await Client.GetStringAsync("InjectedPageProperties"); 1128var response = await Client.GetStringAsync("/Pages/TagHelper/SiblingLinks"); 1144var response = await Client.GetStringAsync("/Pages/TagHelper/SubDirectoryLinks"); 1161var response = await Client.GetStringAsync("/Pages/TagHelper/PathTraversalLinks"); 1174var response = await Client.GetStringAsync("/Pages/Section"); 1187var response = await Client.GetStringAsync("/Different-Route/test"); 1200var response = await Client.GetStringAsync(""); 1235var response = await Client.GetStringAsync("/ModelWithPageFilter"); 1265var response = await Client.GetStringAsync("/Pages/Localized/Page?culture=fr-FR"); 1277var response = await Client.GetStringAsync("/Pages/Localized/PageWithModel?culture=fr-FR"); 1361var response = await Client.GetStringAsync(path); 1374var response = await Client.GetStringAsync("/ModelAsFilter?message=Hello+world"); 1394var content = await Client.GetStringAsync("like-totally-custom"); 1411var content = await Client.GetStringAsync("http://localhost/ModelHandlerTestPage/DefaultValues"); 1423var content = await Client.GetStringAsync("http://localhost/Pages/ShortCircuitPageAtAuthFilter?target=" + targetName); 1435var content = await Client.GetStringAsync("http://localhost/Pages/ShortCircuitPageAtPageFilter?target=" + targetName); 1445var content = await Client.GetStringAsync("http://localhost/Pages/ViewDataAvailableAfterHandlerExecuted");
RazorPagesViewSearchTest.cs (4)
38var content = await Client.GetStringAsync("http://localhost/Pages/ViewSearch?partial=_Sibling"); 48var content = await Client.GetStringAsync("http://localhost/Pages/ViewSearch?partial=_Parent"); 58var content = await Client.GetStringAsync("http://localhost/Pages/ViewSearch?partial=_Root"); 68var content = await Client.GetStringAsync("http://localhost/Pages/ViewSearch?partial=_Shared");
RazorPagesWithBasePathTest.cs (21)
132var response = await Client.GetStringAsync("/Conventions/AuthFolder/AnonymousViaModel"); 147var response = await Client.GetStringAsync("/WithViewStart"); 162var response = await Client.GetStringAsync("/WithViewStart/ViewStartAtRoot"); 176var response = await Client.GetStringAsync("/WithViewImport"); 189var response = await Client.GetStringAsync("/TagHelper/SelfPost"); 205var response = await Client.GetStringAsync("/TagHelper/PostWithHandler"); 224var response = await Client.GetStringAsync("/TagHelper/CrossPost"); 243var response = await Client.GetStringAsync("/TagHelper/FormAction"); 284var response = await Client.GetStringAsync("/Routes/RouteUsingDefaultName"); 297var response = await Client.GetStringAsync("/SearchInPages"); 310var response = await Client.GetStringAsync("/Accounts/About"); 323var response = await Client.GetStringAsync("/Accounts/PageWithRouteTemplate/42"); 340var response = await Client.GetStringAsync("/Accounts/PageWithLinks"); 356var response = await Client.GetStringAsync("/Accounts/RelativeLinks"); 379var response = await Client.GetStringAsync("/Accounts/Manage/RenderPartials"); 400var response = await Client.GetStringAsync("/Accounts/RequiresAuth/AllowAnonymous"); 516var response = await Client.GetStringAsync("/Validation/PageWithValidation?age=71"); 527var response = await Client.GetStringAsync("/Validation/PageWithCompareValidation?password=[PlaceHolder]-1a&comparePassword=[PlaceHolder]-1b"); 538var response = await Client.GetStringAsync("/Validation/PageHandlerWithValidation"); 548var response = await Client.GetStringAsync("/ClassLibraryPages/Served"); 558var response = await Client.GetStringAsync("/ClassLibraryPages/Overriden");
RazorRuntimeCompilationHostingStartupTest.cs (7)
58var body = await Client.GetStringAsync("/UpdateableViews"); 65body = await Client.GetStringAsync("/UpdateableViews"); 73body = await Client.GetStringAsync("/UpdateableViews"); 81body = await Client.GetStringAsync("/UpdateableViews"); 95var body = await Client.GetStringAsync("/UpdateablePage"); 103body = await Client.GetStringAsync("/UpdateablePage"); 111body = await Client.GetStringAsync("/UpdateablePage");
RazorViewLocationSpecificationTest.cs (4)
46var body = await Client.GetStringAsync(BaseUrl + action); 65var body = await Client.GetStringAsync(BaseUrl + actionName); 82var body = await Client.GetStringAsync(BaseUrl + actionName); 102var body = await Client.GetStringAsync(BaseUrl + actionName);
RoutingTestsBase.cs (3)
944var response = await Client.GetStringAsync("http://localhost/Organization/5"); 955var response = await Client.GetStringAsync("http://localhost/Teams/AllTeams"); 968var body = await Client.GetStringAsync("http://localhost/TeamName/" + teamName);
SimpleTests.cs (1)
39var content = await Client.GetStringAsync("http://localhost/Home/Index");
SimpleWithWebApplicationBuilderTests.cs (5)
46var content = await Client.GetStringAsync("http://localhost/"); 145var content = await client.GetStringAsync("http://localhost/environment"); 172var content = await client.GetStringAsync("http://localhost/greeting"); 191var content = await client.GetStringAsync("http://localhost/environment"); 212var content = await client.GetStringAsync("http://localhost/webroot");
TagHelpersTest.cs (2)
185var result = await Client.GetStringAsync("http://localhost/Home/" + action); 198var result = await Client.GetStringAsync("RemoveDefaultInheritedTagHelpers");
TestingInfrastructureTests.cs (2)
37var response = await Client.GetStringAsync("Testing/Builder"); 189var response = await factory.CreateClient().GetStringAsync("Testing/Builder");
ViewEngineTests.cs (14)
100var body = await Client.GetStringAsync("http://localhost/ViewEngine/ViewWithPartial"); 113var body = await Client.GetStringAsync( 129var body = await Client.GetStringAsync("http://localhost/ViewEngine/ViewPassesViewDataToLayout"); 198var body = await Client.GetStringAsync($"http://localhost/ExpanderViews/{action}"); 272var body = await Client.GetStringAsync("http://localhost/NestedViewStarts"); 329var body = await Client.GetStringAsync(target); 346var body = await Client.GetStringAsync("http://localhost/ViewEngine/ViewWithComponentThatHasLayout"); 370var body = await Client.GetStringAsync("http://localhost/ViewEngine/ViewWithRelativePath"); 383var body = await Client.GetStringAsync("http://localhost/ViewEngine/ViewWithComponentThatHasViewStart"); 396var body = await Client.GetStringAsync("http://localhost/PartialsWithLayout/PartialDoesNotExecuteViewStarts"); 411var body = await Client.GetStringAsync("http://localhost/PartialsWithLayout/PartialsRenderedViaRenderPartial"); 445var responseContent = await Client.GetStringAsync("http://localhost/ViewWithPaths"); 462var responseContent = await Client.GetStringAsync("/BackSlash"); 475var responseContent = await Client.GetStringAsync("/ViewEngine/SearchInPages");
Microsoft.AspNetCore.Rewrite.Tests (29)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (13)
35var response = await server.CreateClient().GetStringAsync("/hey/hello"); 61var response = await server.CreateClient().GetStringAsync("/hey/hello"); 87var response = await server.CreateClient().GetStringAsync("/hey/hello"); 112var response = await server.CreateClient().GetStringAsync("/hey/hello"); 137var response = await server.CreateClient().GetStringAsync("http://www.foo.org/"); 162var response = await server.CreateClient().GetStringAsync("http://www.foo.org:42/"); 187var response = await server.CreateClient().GetStringAsync("http://www.foo.org/"); 214var response = await server.CreateClient().GetStringAsync(url); 245var response = await server.CreateClient().GetStringAsync(url); 271var response = await server.CreateClient().GetStringAsync("http://www.foo.org/blog/2016-jun"); 297var response = await server.CreateClient().GetStringAsync("http://www.foo.org/blog/2016-jun"); 323var response = await server.CreateClient().GetStringAsync("http://www.foo.org/blog/2016-jun"); 406var response = await server.CreateClient().GetStringAsync(input);
IISUrlRewrite\MiddleWareTests.cs (4)
77var response = await server.CreateClient().GetStringAsync("/article/10/hey"); 113var response = await server.CreateClient().GetStringAsync("page.asp?p2=321&p1=123"); 617var response = await server.CreateClient().GetStringAsync($"http://localhost/{Guid.NewGuid()}/foo/bar"); 749var response = await server.CreateClient().GetStringAsync("http://localhost/foo/bar");
MiddlewareTests.cs (12)
41var response = await server.CreateClient().GetStringAsync("foo"); 71var response = await server.CreateClient().GetStringAsync("foo"); 103var response = await server.CreateClient().GetStringAsync("foo"); 135var response = await server.CreateClient().GetStringAsync("foo"); 669var response = await server.CreateClient().GetStringAsync("foo"); 696var response = await server.CreateClient().GetStringAsync(""); 872var response = await server.CreateClient().GetStringAsync("foo"); 910var response = await server.CreateClient().GetStringAsync("foo"); 946var response = await server.CreateClient().GetStringAsync("foo"); 983var response = await server.CreateClient().GetStringAsync("foo"); 1020var response = await server.CreateClient().GetStringAsync("foo"); 1052var response = await server.CreateClient().GetStringAsync("foo");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
DelegateTests.cs (1)
271return await client.GetStringAsync(uri);
Http2Tests.cs (2)
626var response = await client.GetStringAsync(address); 648var response = await client.GetStringAsync(address);
Http3Tests.cs (3)
44var response = await client.GetStringAsync(address); 84var response3 = await client.GetStringAsync(address); 122var response3 = await client.GetStringAsync(address);
HttpsTests.cs (1)
274return await client.GetStringAsync(uri);
Listener\ServerOnExistingQueueTests.cs (1)
321return await client.GetStringAsync(uri);
Listener\ServerTests.cs (1)
210return await client.GetStringAsync(uri);
RequestHeaderTests.cs (1)
248return await client.GetStringAsync(uri);
RequestTests.cs (1)
621return await client.GetStringAsync(uri);
ServerTests.cs (1)
641return await client.GetStringAsync(uri);
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (2)
DelegateOutOfProcTests.cs (2)
49var responseString = await deploymentResult.HttpClient.GetStringAsync("").DefaultTimeout(); 65responseString = await client.GetStringAsync(delegatorAddress).DefaultTimeout();
Microsoft.AspNetCore.Session.Tests (10)
SessionTests.cs (10)
205Assert.Equal("1", await client.GetStringAsync("/")); 206Assert.Equal("2", await client.GetStringAsync("/")); 207Assert.Equal("3", await client.GetStringAsync("/")); 265Assert.Equal("1", await client.GetStringAsync("/second")); 266Assert.Equal("2", await client.GetStringAsync("/third")); 323Assert.Equal("1", await client.GetStringAsync("/second")); 324Assert.Equal("2", await client.GetStringAsync("/third")); 428result = await client.GetStringAsync("/second"); 501await client.GetStringAsync("/DoNotAccessSessionData"); 504var data = await client.GetStringAsync("/AccessSessionData");
Microsoft.AspNetCore.TestHost.Tests (18)
ClientHandlerTests.cs (1)
709var result = await server.CreateClient().GetStringAsync("/");
TestClientTests.cs (4)
34var actual = await client.GetStringAsync("http://localhost:12345"); 56var actual = await client.GetStringAsync("http://localhost:12345"); 78var actual = await client.GetStringAsync("http://localhost:12345/"); 1043var actual = await client.GetStringAsync("http://localhost:12345/");
TestServerTests.cs (13)
132var response = await host.CreateClient().GetStringAsync("/"); 203string result = await server.CreateClient().GetStringAsync("/path"); 255string result = await server.CreateClient().GetStringAsync("/path"); 440string result = await server.CreateClient().GetStringAsync("/path"); 462string result = await server.CreateClient().GetStringAsync("/path"); 510var result = await server.CreateClient().GetStringAsync("/path"); 551var result = await server.CreateClient().GetStringAsync("/path"); 568string result = await server.CreateClient().GetStringAsync("/path"); 589string result = await server.CreateClient().GetStringAsync("/path"); 621string result = await server.CreateClient().GetStringAsync("/path"); 637string result = await server.CreateClient().GetStringAsync("/path"); 693await Assert.ThrowsAsync<TaskCanceledException>(async () => { string result = await server.CreateClient().GetStringAsync("/path"); }); 738var result = await server.CreateClient().GetStringAsync("/path");
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2411var response = await client.GetStringAsync("/"); 2468await client.GetStringAsync($"/hello?username={username}");
Microsoft.DotNet.VersionTools (1)
Automation\GitHubApi\GitHubClient.cs (1)
120string currentFile = await _httpClient.GetStringAsync(fileUrl);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
63var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await client.GetStringAsync("/"));
SocialSample (1)
Startup.cs (1)
369var refreshResponse = await options.Backchannel.GetStringAsync(options.TokenEndpoint + query);
Sockets.FunctionalTests (5)
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (2)
87var result = await Client.GetStringAsync($"https://localhost:{server.Port}/"); 115var result = await Client.GetStringAsync($"https://localhost:{server.Port}/");
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
92var response = await Client.GetStringAsync($"https://localhost:{server.Port}/"); 142var requestTask = Client.GetStringAsync($"https://localhost:{server.Port}/"); 194var requestTask = Client.GetStringAsync($"https://localhost:{server.Port}/");