1333 references to ReadAsStringAsync
Aspire.EndToEnd.Tests (2)
IntegrationServicesTests.cs (1)
34var responseContent = await response.Content.ReadAsStringAsync();
tests\Shared\WorkloadTesting\AspireProject.cs (1)
483if (args.Outcome.Result?.Content is HttpContent content && (await content.ReadAsStringAsync()) is string contentStr)
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
179var d = await response.Content.ReadAsStringAsync();
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
483if (args.Outcome.Result?.Content is HttpContent content && (await content.ReadAsStringAsync()) is string contentStr)
AuthSamples.FunctionalTests (34)
ClaimsTransformTests.cs (2)
26var content = await response.Content.ReadAsStringAsync(); 37var content = await response.Content.ReadAsStringAsync();
CookiesTests.cs (5)
25var content = await response.Content.ReadAsStringAsync(); 36var content = await response.Content.ReadAsStringAsync(); 59var content = await response.Content.ReadAsStringAsync(); 63content = await response.Content.ReadAsStringAsync(); 73var content = await response.Content.ReadAsStringAsync();
CustomAuthorizationFailureResponseTests.cs (2)
25var content = await response.Content.ReadAsStringAsync(); 35var content = await response.Content.ReadAsStringAsync();
CustomPolicyProviderTests.cs (7)
29var content = await response.Content.ReadAsStringAsync(); 40var content = await response.Content.ReadAsStringAsync(); 55var content = await response.Content.ReadAsStringAsync(); 71var content = await response.Content.ReadAsStringAsync(); 86var content = await response.Content.ReadAsStringAsync(); 102var content = await response.Content.ReadAsStringAsync(); 114var content = await response.Content.ReadAsStringAsync();
DynamicSchemeTests.cs (6)
27var content = await response.Content.ReadAsStringAsync(); 38var content = await response.Content.ReadAsStringAsync(); 44content = await response.Content.ReadAsStringAsync(); 52content = await response.Content.ReadAsStringAsync(); 62content = await response.Content.ReadAsStringAsync(); 71content = await response.Content.ReadAsStringAsync();
IdentityExternalClaimsTests.cs (2)
26var content = await response.Content.ReadAsStringAsync(); 37var content = await response.Content.ReadAsStringAsync();
PathSchemeSelectionTests.cs (7)
27var content = await response.Content.ReadAsStringAsync(); 38var content = await response.Content.ReadAsStringAsync(); 49var content = await response.Content.ReadAsStringAsync(); 61var content = await response.Content.ReadAsStringAsync(); 85var content = await response.Content.ReadAsStringAsync(); 89content = await response.Content.ReadAsStringAsync(); 99var content = await response.Content.ReadAsStringAsync();
StaticFilesAuthTests.cs (2)
25var content = await response.Content.ReadAsStringAsync(); 36var content = await response.Content.ReadAsStringAsync();
TestAssert.cs (1)
77var content = await response.Content.ReadAsStringAsync();
BasicWebSite (1)
Services\WeatherForecastService.cs (1)
23var dataString = await result.Content.ReadAsStringAsync();
Binding.Http.IntegrationTests (1)
BasicHttpBindingTests.4.0.0.cs (1)
163string requestMessageBody = oldContent.ReadAsStringAsync().Result;
Diagnostics.EFCore.FunctionalTests (13)
DatabaseErrorPageMiddlewareTest.cs (9)
45Assert.Equal("Request Handled", await response.Content.ReadAsStringAsync()); 142var content = await response.Content.ReadAsStringAsync(); 204var content = await response.Content.ReadAsStringAsync(); 243var content = await response.Content.ReadAsStringAsync(); 287var content = await response.Content.ReadAsStringAsync(); 301content = await response.Content.ReadAsStringAsync(); 307content = await response.Content.ReadAsStringAsync(); 366var content = await response.Content.ReadAsStringAsync(); 488var content = await response.Content.ReadAsStringAsync();
MigrationsEndPointMiddlewareTest.cs (4)
42Assert.Equal("Request Handled", await response.Content.ReadAsStringAsync()); 162var content = await response.Content.ReadAsStringAsync(); 194var content = await response.Content.ReadAsStringAsync(); 223var content = await response.Content.ReadAsStringAsync();
Diagnostics.FunctionalTests (8)
DatabaseErrorPageSampleTest.cs (1)
31var body = await response.Content.ReadAsStringAsync();
DeveloperExceptionPageSampleTest.cs (1)
32var body = await response.Content.ReadAsStringAsync();
ExceptionHandlerSampleTest.cs (1)
28var body = await response.Content.ReadAsStringAsync();
MiddlewareAnalysisSampleTest.cs (1)
28var body = await response.Content.ReadAsStringAsync();
StatusCodeSampleTest.cs (3)
33var body = await response.Content.ReadAsStringAsync(); 48var responseBody = await response.Content.ReadAsStringAsync(); 68var responseBody = await response.Content.ReadAsStringAsync();
WelcomePageSampleTest.cs (1)
29var body = await response.Content.ReadAsStringAsync();
HeaderPropagationSample (1)
Startup.cs (1)
85await context.Response.WriteAsync(await response.Content.ReadAsStringAsync());
HttpClientApp (2)
Program.cs (2)
24Console.WriteLine(await response.Content.ReadAsStringAsync()); 29Console.WriteLine(await response.Content.ReadAsStringAsync());
HttpStress (10)
Program.cs (10)
178ValidateContent(contentSource, await m.Content.ReadAsStringAsync()); 207ValidateContent(contentSource, await m.Content.ReadAsStringAsync()); 226ValidateContent(contentSource, await m.Content.ReadAsStringAsync()); 247ValidateContent(content, await m.Content.ReadAsStringAsync()); 261ValidateContent(content, await m.Content.ReadAsStringAsync()); 275ValidateContent(content, await m.Content.ReadAsStringAsync()); 291ValidateContent(content, await m.Content.ReadAsStringAsync()); 314ValidateContent(content, await m.Content.ReadAsStringAsync()); 333string r = await m.Content.ReadAsStringAsync(); 351string r = await m.Content.ReadAsStringAsync();
IIS.FunctionalTests (44)
Http2TrailersResetTests.cs (5)
87Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 102Assert.Equal(body, await response.Content.ReadAsStringAsync()); 120Assert.Equal(body + body, await response.Content.ReadAsStringAsync()); 139Assert.Equal(body, await response.Content.ReadAsStringAsync()); 182Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
Http3Tests.cs (7)
54Assert.Equal("HTTP/3", await response.Content.ReadAsStringAsync()); 72Assert.Equal("HTTP/1.1", await response1.Content.ReadAsStringAsync()); 78Assert.Equal("HTTP/3", await response3.Content.ReadAsStringAsync()); 95Assert.Equal("HTTP/2", await response2.Content.ReadAsStringAsync()); 111var result = await response.Content.ReadAsStringAsync(); 139var ex = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()); 156var ex = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
66var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
143Assert.Equal(messages, await response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
108await result.HttpClient.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (7)
53var responseText = await response.Content.ReadAsStringAsync(); 77var responseText = await response.Content.ReadAsStringAsync(); 101var responseString = await response.Content.ReadAsStringAsync(); 123var responseText = await response.Content.ReadAsStringAsync(); 147var responseText = await response.Content.ReadAsStringAsync(); 168var responseText = await response.Content.ReadAsStringAsync(); 184responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
91var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
30var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
54Assert.Equal(expectedResponse, await response.Content.ReadAsStringAsync()); 69var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
67Assert.Contains("500.35", await result2.Content.ReadAsStringAsync()); 94Assert.Contains("500.34", await result2.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (15)
166var responseText = await response.Content.ReadAsStringAsync(); 178var responseText = await response.Content.ReadAsStringAsync(); 189var responseText = await response.Content.ReadAsStringAsync(); 200var responseText = await response.Content.ReadAsStringAsync(); 211var responseText = await response.Content.ReadAsStringAsync(); 437var text = response.Content.ReadAsStringAsync().Result; 454Assert.Equal("Hello World", await result.Content.ReadAsStringAsync()); 484Assert.Equal("Success", await result.Content.ReadAsStringAsync()); 510Assert.Equal("Success", await result.Content.ReadAsStringAsync()); 517var responseText = await response.Content.ReadAsStringAsync(); 526var responseText = await response.Content.ReadAsStringAsync(); 573Assert.Equal(body ?? string.Empty, await response.Content.ReadAsStringAsync()); 692var responseText = await response.Content.ReadAsStringAsync(); 708await _fixture.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1"); 711await _fixture.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "0");
src\Servers\IIS\IIS\test\Common.FunctionalTests\WindowsAuthTests.cs (1)
56var responseText = await response.Content.ReadAsStringAsync();
IIS.LongTests (32)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
30var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
54Assert.Equal(expectedResponse, await response.Content.ReadAsStringAsync()); 69var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (9)
146Assert.Contains("500.0", await result.Content.ReadAsStringAsync()); 165Assert.Contains("502.5", await result.Content.ReadAsStringAsync()); 183Assert.Contains("500.30", await result.Content.ReadAsStringAsync()); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 624Assert.Contains("0x80072efe", await response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (20)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 81Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 430var responseContent = await response.Content.ReadAsStringAsync(); 491var responseContent = await response.Content.ReadAsStringAsync(); 523var responseContent = await response.Content.ReadAsStringAsync(); 775var content = await result.Content.ReadAsStringAsync(); 799var content = await result.Content.ReadAsStringAsync(); 822var content = await result.Content.ReadAsStringAsync(); 847var content = await result.Content.ReadAsStringAsync(); 869var content = await result.Content.ReadAsStringAsync(); 888var content = await result.Content.ReadAsStringAsync(); 906var content = await result.Content.ReadAsStringAsync(); 1064var responseText = await response.Content.ReadAsStringAsync(); 1079var responseString = await response.Content.ReadAsStringAsync(); 1098var responseString = await response.Content.ReadAsStringAsync(); 1121var responseString = await response.Content.ReadAsStringAsync(); 1144var responseString = await response.Content.ReadAsStringAsync(); 1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1583Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1598var responseText = await response.Content.ReadAsStringAsync();
IIS.NewHandler.FunctionalTests (32)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
30var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
54Assert.Equal(expectedResponse, await response.Content.ReadAsStringAsync()); 69var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (9)
146Assert.Contains("500.0", await result.Content.ReadAsStringAsync()); 165Assert.Contains("502.5", await result.Content.ReadAsStringAsync()); 183Assert.Contains("500.30", await result.Content.ReadAsStringAsync()); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 624Assert.Contains("0x80072efe", await response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (20)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 81Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 430var responseContent = await response.Content.ReadAsStringAsync(); 491var responseContent = await response.Content.ReadAsStringAsync(); 523var responseContent = await response.Content.ReadAsStringAsync(); 775var content = await result.Content.ReadAsStringAsync(); 799var content = await result.Content.ReadAsStringAsync(); 822var content = await result.Content.ReadAsStringAsync(); 847var content = await result.Content.ReadAsStringAsync(); 869var content = await result.Content.ReadAsStringAsync(); 888var content = await result.Content.ReadAsStringAsync(); 906var content = await result.Content.ReadAsStringAsync(); 1064var responseText = await response.Content.ReadAsStringAsync(); 1079var responseString = await response.Content.ReadAsStringAsync(); 1098var responseString = await response.Content.ReadAsStringAsync(); 1121var responseString = await response.Content.ReadAsStringAsync(); 1144var responseString = await response.Content.ReadAsStringAsync(); 1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1583Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1598var responseText = await response.Content.ReadAsStringAsync();
IIS.NewShim.FunctionalTests (32)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
30var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
54Assert.Equal(expectedResponse, await response.Content.ReadAsStringAsync()); 69var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (9)
146Assert.Contains("500.0", await result.Content.ReadAsStringAsync()); 165Assert.Contains("502.5", await result.Content.ReadAsStringAsync()); 183Assert.Contains("500.30", await result.Content.ReadAsStringAsync()); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 621Assert.Contains("0x80072f78", await response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (20)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 81Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 430var responseContent = await response.Content.ReadAsStringAsync(); 491var responseContent = await response.Content.ReadAsStringAsync(); 523var responseContent = await response.Content.ReadAsStringAsync(); 775var content = await result.Content.ReadAsStringAsync(); 799var content = await result.Content.ReadAsStringAsync(); 822var content = await result.Content.ReadAsStringAsync(); 847var content = await result.Content.ReadAsStringAsync(); 869var content = await result.Content.ReadAsStringAsync(); 888var content = await result.Content.ReadAsStringAsync(); 906var content = await result.Content.ReadAsStringAsync(); 1064var responseText = await response.Content.ReadAsStringAsync(); 1079var responseString = await response.Content.ReadAsStringAsync(); 1098var responseString = await response.Content.ReadAsStringAsync(); 1121var responseString = await response.Content.ReadAsStringAsync(); 1144var responseString = await response.Content.ReadAsStringAsync(); 1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1583Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1598var responseText = await response.Content.ReadAsStringAsync();
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
30var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
54Assert.Equal(expectedResponse, await response.Content.ReadAsStringAsync()); 69var responseText = await response.Content.ReadAsStringAsync();
IIS.Tests (1)
TestServerTest.cs (1)
31Assert.Equal(helloWorld, await result.Content.ReadAsStringAsync());
IISExpress.FunctionalTests (73)
InProcess\AuthenticationTests.cs (6)
33var responseText = await response.Content.ReadAsStringAsync(); 38responseText = await response.Content.ReadAsStringAsync(); 44responseText = await response.Content.ReadAsStringAsync(); 51responseText = await response.Content.ReadAsStringAsync(); 58responseText = await response.Content.ReadAsStringAsync(); 63responseText = await response.Content.ReadAsStringAsync();
OutOfProcess\MultipleAppTests.cs (1)
56var responseText = await response.Content.ReadAsStringAsync();
OutOfProcess\NtlmAuthentationTest.cs (4)
47var responseText = await response.Content.ReadAsStringAsync(); 53responseText = await response.Content.ReadAsStringAsync(); 75responseText = await response.Content.ReadAsStringAsync(); 80responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
66var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
143Assert.Equal(messages, await response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
108await result.HttpClient.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (7)
53var responseText = await response.Content.ReadAsStringAsync(); 77var responseText = await response.Content.ReadAsStringAsync(); 101var responseString = await response.Content.ReadAsStringAsync(); 123var responseText = await response.Content.ReadAsStringAsync(); 147var responseText = await response.Content.ReadAsStringAsync(); 168var responseText = await response.Content.ReadAsStringAsync(); 184responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
91var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
30var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
54Assert.Equal(expectedResponse, await response.Content.ReadAsStringAsync()); 69var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
67Assert.Contains("500.35", await result2.Content.ReadAsStringAsync()); 94Assert.Contains("500.34", await result2.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (15)
166var responseText = await response.Content.ReadAsStringAsync(); 178var responseText = await response.Content.ReadAsStringAsync(); 189var responseText = await response.Content.ReadAsStringAsync(); 200var responseText = await response.Content.ReadAsStringAsync(); 211var responseText = await response.Content.ReadAsStringAsync(); 437var text = response.Content.ReadAsStringAsync().Result; 454Assert.Equal("Hello World", await result.Content.ReadAsStringAsync()); 484Assert.Equal("Success", await result.Content.ReadAsStringAsync()); 510Assert.Equal("Success", await result.Content.ReadAsStringAsync()); 517var responseText = await response.Content.ReadAsStringAsync(); 526var responseText = await response.Content.ReadAsStringAsync(); 573Assert.Equal(body ?? string.Empty, await response.Content.ReadAsStringAsync()); 692var responseText = await response.Content.ReadAsStringAsync(); 708await _fixture.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1"); 711await _fixture.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "0");
src\Servers\IIS\IIS\test\Common.FunctionalTests\WindowsAuthTests.cs (1)
56var responseText = await response.Content.ReadAsStringAsync();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (9)
146Assert.Contains("500.0", await result.Content.ReadAsStringAsync()); 165Assert.Contains("502.5", await result.Content.ReadAsStringAsync()); 183Assert.Contains("500.30", await result.Content.ReadAsStringAsync()); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 624Assert.Contains("0x80072efe", await response.Content.ReadAsStringAsync());
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (20)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 81Assert.Contains("500.0", await response.Content.ReadAsStringAsync()); 430var responseContent = await response.Content.ReadAsStringAsync(); 491var responseContent = await response.Content.ReadAsStringAsync(); 523var responseContent = await response.Content.ReadAsStringAsync(); 775var content = await result.Content.ReadAsStringAsync(); 799var content = await result.Content.ReadAsStringAsync(); 822var content = await result.Content.ReadAsStringAsync(); 847var content = await result.Content.ReadAsStringAsync(); 869var content = await result.Content.ReadAsStringAsync(); 888var content = await result.Content.ReadAsStringAsync(); 906var content = await result.Content.ReadAsStringAsync(); 1064var responseText = await response.Content.ReadAsStringAsync(); 1079var responseString = await response.Content.ReadAsStringAsync(); 1098var responseString = await response.Content.ReadAsStringAsync(); 1121var responseString = await response.Content.ReadAsStringAsync(); 1144var responseString = await response.Content.ReadAsStringAsync(); 1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1583Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1598var responseText = await response.Content.ReadAsStringAsync();
UpgradeFeatureDetectionTests.cs (1)
75var responseText = await response.Content.ReadAsStringAsync();
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
545return response.Content.ReadAsStringAsync().GetAwaiter().GetResult();
InMemory.FunctionalTests (1)
Http2\Http2EndToEndTests.cs (1)
74Assert.Equal("hello, world", await responseMessage.Content.ReadAsStringAsync());
installer.tasks (1)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
80string tpnContent = await response.Content.ReadAsStringAsync();
Interop.FunctionalTests (28)
Http2\Http2RequestTests.cs (1)
218Assert.Equal("An HTTP/1.x request was sent to an HTTP/2 only endpoint.", await responseMessage.Content.ReadAsStringAsync());
Http3\Http3RequestTests.cs (3)
156Assert.Equal("hello, world", await responseMessage.Content.ReadAsStringAsync()); 439var responseText = await response.Content.ReadAsStringAsync().DefaultTimeout(); 740var responseText = await response.Content.ReadAsStringAsync().DefaultTimeout();
Http3\Http3TlsTests.cs (7)
63var result = await response.Content.ReadAsStringAsync(); 109var result = await response.Content.ReadAsStringAsync(); 151var result = await response.Content.ReadAsStringAsync(); 211Assert.Equal("True", await response.Content.ReadAsStringAsync().DefaultTimeout()); 250Assert.Equal("False", await response.Content.ReadAsStringAsync()); 329var result = await response.Content.ReadAsStringAsync(); 494var result = await response.Content.ReadAsStringAsync();
HttpClientHttp2InteropTests.cs (17)
66Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 441var read = await response.Content.ReadAsStringAsync().DefaultTimeout(); 540Assert.Equal("", await response.Content.ReadAsStringAsync()); 573var responseBody = await response.Content.ReadAsStringAsync().DefaultTimeout(); 628var exception = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()).DefaultTimeout(); 655var body = await response.Content.ReadAsStringAsync().DefaultTimeout(); 685var responseBody = await response.Content.ReadAsStringAsync().DefaultTimeout(); 741var responseEx = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync().DefaultTimeout()); 800var responseEx = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync().DefaultTimeout()); 1332Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 1447Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 1537Assert.Equal("Hello World", await response0.Content.ReadAsStringAsync()); 1538Assert.Equal("Hello World", await response1.Content.ReadAsStringAsync()); 1570Assert.Equal("點.看", await response.Content.ReadAsStringAsync()); 1592Assert.Equal("/ !\"$%&'()*++,-./0123456789:;<>=@ABCDEFGHIJKLMNOPQRSTUVWXYZ[/]^_`{|}~點看", await response.Content.ReadAsStringAsync()); 1637Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 1682Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
JwtClientSample (1)
Program.cs (1)
86return await httpResponse.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Authentication.Test (87)
CertificateTests.cs (7)
473var responseContent = await response.Content.ReadAsStringAsync(); 604var responseContent = await response.Content.ReadAsStringAsync(); 623var responseContent = await response.Content.ReadAsStringAsync(); 674var responseContent = await response.Content.ReadAsStringAsync(); 731var responseContent = await response.Content.ReadAsStringAsync(); 750var responseContent = await response.Content.ReadAsStringAsync(); 772var responseContent = await response.Content.ReadAsStringAsync();
CookieTests.cs (1)
1923transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
FacebookTests.cs (1)
393var body = req.Content.ReadAsStringAsync().Result;
GoogleTests.cs (1)
1032var body = req.Content.ReadAsStringAsync().Result;
JwtBearerTests.cs (6)
120Assert.Equal(tokenText, await response.Response.Content.ReadAsStringAsync()); 863Assert.Equal("You Shall Not Pass", await response.Response.Content.ReadAsStringAsync()); 912Assert.Equal("You Shall Not Pass", await response.Content.ReadAsStringAsync()); 953var responseBody = await response.Response.Content.ReadAsStringAsync(); 997var responseBody = await response.Response.Content.ReadAsStringAsync(); 1262transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
JwtBearerTests_Handler.cs (6)
110Assert.Equal(tokenText, await response.Response.Content.ReadAsStringAsync()); 808Assert.Equal("You Shall Not Pass", await response.Response.Content.ReadAsStringAsync()); 857Assert.Equal("You Shall Not Pass", await response.Content.ReadAsStringAsync()); 897var responseBody = await response.Response.Content.ReadAsStringAsync(); 940var responseBody = await response.Response.Content.ReadAsStringAsync(); 1321transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
MicrosoftAccountTests.cs (1)
299var body = req.Content.ReadAsStringAsync().Result;
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
167var body = await res.Content.ReadAsStringAsync(); 988var content = await request.Content.ReadAsStringAsync();
OpenIdConnect\OpenIdConnectEventTests.cs (26)
48Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 94Assert.Equal("", await response.Content.ReadAsStringAsync()); 116Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 165Assert.Equal("", await response.Content.ReadAsStringAsync()); 201Assert.Equal("", await response.Content.ReadAsStringAsync()); 224Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 275Assert.Equal("", await response.Content.ReadAsStringAsync()); 305Assert.Equal("", await response.Content.ReadAsStringAsync()); 329Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 382Assert.Equal("", await response.Content.ReadAsStringAsync()); 413Assert.Equal("", await response.Content.ReadAsStringAsync()); 437Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 490Assert.Equal("", await response.Content.ReadAsStringAsync()); 521Assert.Equal("", await response.Content.ReadAsStringAsync()); 546Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 601Assert.Equal("", await response.Content.ReadAsStringAsync()); 633Assert.Equal("", await response.Content.ReadAsStringAsync()); 664Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 731Assert.Equal("", await response.Content.ReadAsStringAsync()); 779Assert.Equal("", await response.Content.ReadAsStringAsync()); 801Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 825Assert.Equal("", await response.Content.ReadAsStringAsync()); 862Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 896Assert.Equal("", await response.Content.ReadAsStringAsync()); 922Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 949Assert.Equal("", await response.Content.ReadAsStringAsync());
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (26)
48Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 94Assert.Equal("", await response.Content.ReadAsStringAsync()); 116Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 165Assert.Equal("", await response.Content.ReadAsStringAsync()); 201Assert.Equal("", await response.Content.ReadAsStringAsync()); 224Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 275Assert.Equal("", await response.Content.ReadAsStringAsync()); 305Assert.Equal("", await response.Content.ReadAsStringAsync()); 329Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 382Assert.Equal("", await response.Content.ReadAsStringAsync()); 413Assert.Equal("", await response.Content.ReadAsStringAsync()); 437Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 490Assert.Equal("", await response.Content.ReadAsStringAsync()); 521Assert.Equal("", await response.Content.ReadAsStringAsync()); 546Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 601Assert.Equal("", await response.Content.ReadAsStringAsync()); 633Assert.Equal("", await response.Content.ReadAsStringAsync()); 664Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 731Assert.Equal("", await response.Content.ReadAsStringAsync()); 779Assert.Equal("", await response.Content.ReadAsStringAsync()); 801Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 825Assert.Equal("", await response.Content.ReadAsStringAsync()); 862Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 896Assert.Equal("", await response.Content.ReadAsStringAsync()); 922Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync()); 949Assert.Equal("", await response.Content.ReadAsStringAsync());
OpenIdConnect\TestServerExtensions.cs (1)
40transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
TestExtensions.cs (1)
34transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
WsFederation\WsFederationTest.cs (4)
138Assert.Equal(WsFederationDefaults.AuthenticationScheme, await response.Content.ReadAsStringAsync()); 165Assert.Equal(WsFederationDefaults.AuthenticationScheme, await response.Content.ReadAsStringAsync()); 183Assert.Equal("AuthenticationFailed", await response.Content.ReadAsStringAsync()); 197Assert.Equal("", await response.Content.ReadAsStringAsync());
WsFederation\WsFederationTest_Handler.cs (4)
136Assert.Equal(WsFederationDefaults.AuthenticationScheme, await response.Content.ReadAsStringAsync()); 163Assert.Equal(WsFederationDefaults.AuthenticationScheme, await response.Content.ReadAsStringAsync()); 181Assert.Equal("AuthenticationFailed", await response.Content.ReadAsStringAsync()); 195Assert.Equal("", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.CookiePolicy.Test (1)
TestExtensions.cs (1)
31transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Cors.Test (3)
CorsMiddlewareTests.cs (3)
58Assert.Equal("Cross origin response", await response.Content.ReadAsStringAsync()); 100Assert.Equal("Cross origin response", await response.Content.ReadAsStringAsync()); 562Assert.Equal("Cross origin response", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (25)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (2)
82Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 127Assert.Equal("Custom!", await response.Content.ReadAsStringAsync());
HealthCheckMiddlewareSampleTest.cs (3)
32Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 77Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 99Assert.Equal("Unhealthy", await response.Content.ReadAsStringAsync());
HealthCheckMiddlewareTests.cs (20)
123Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 153Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 186Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 219Assert.Equal("Degraded", await response.Content.ReadAsStringAsync()); 252Assert.Equal("Unhealthy", await response.Content.ReadAsStringAsync()); 285Assert.Equal("Unhealthy", await response.Content.ReadAsStringAsync()); 331var result = await response.Content.ReadAsStringAsync(); 367Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 402Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 431Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 466Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 506Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 536Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 594Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 659Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 696Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 734Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 772Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 852Assert.Equal("Healthy", await response.Content.ReadAsStringAsync()); 896Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.Diagnostics.Tests (28)
DeveloperExceptionPageMiddlewareTest.cs (7)
260var responseText = await response.Content.ReadAsStringAsync(); 295var responseText = await response.Content.ReadAsStringAsync(); 333var responseText = await response.Content.ReadAsStringAsync(); 368var responseText = await response.Content.ReadAsStringAsync(); 403Assert.Equal("Test exception", await response.Content.ReadAsStringAsync()); 439Assert.Equal("Bad format exception!", await response.Content.ReadAsStringAsync()); 477Assert.Equal("An error occurred", await response.Content.ReadAsStringAsync());
ExceptionHandlerTest.cs (14)
63Assert.Equal("An error occurred while adding a product", await response.Content.ReadAsStringAsync()); 118Assert.Equal("Hello", await response.Content.ReadAsStringAsync()); 184Assert.Equal(expectedResponseBody, await response.Content.ReadAsStringAsync()); 240Assert.Equal(expectedResponseBody, await response.Content.ReadAsStringAsync()); 295Assert.Equal(expectedResponseBody, await response.Content.ReadAsStringAsync()); 367Assert.Equal("Custom 404", await response.Content.ReadAsStringAsync()); 437Assert.Equal("Hello", await response.Content.ReadAsStringAsync()); 601Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 650Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 771Assert.Equal("separate pipeline", await response.Content.ReadAsStringAsync()); 822Assert.Equal("Handled", await response.Content.ReadAsStringAsync()); 876Assert.Equal("Handled", await response.Content.ReadAsStringAsync()); 928Assert.Equal("Handled", await response.Content.ReadAsStringAsync()); 986Assert.Equal("Custom handler", await response.Content.ReadAsStringAsync());
StatusCodeMiddlewareTest.cs (7)
66var content = await response.Content.ReadAsStringAsync(); 128var content = await response.Content.ReadAsStringAsync(); 190var content = await response.Content.ReadAsStringAsync(); 279var content = await response.Content.ReadAsStringAsync(); 313var content = await response.Content.ReadAsStringAsync(); 350var content = await response.Content.ReadAsStringAsync(); 388var content = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.FunctionalTests (5)
WebHostFunctionalTests.cs (5)
41var responseText = await response.Content.ReadAsStringAsync(); 66var responseText = await response.Content.ReadAsStringAsync(); 92var responseText = await response.Content.ReadAsStringAsync(); 167var responseText = await response.Content.ReadAsStringAsync(); 190var responseText = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
LinkedApplicationTests.cs (1)
47var body = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3260token = await response.Content.ReadAsStringAsync(); 3422token = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Extensions\ResponseAssert.cs (1)
25var content = await response.Content.ReadAsStringAsync();
Pages\Account\Login.cs (1)
81var content = await failedLogin.Content.ReadAsStringAsync();
UserStories.cs (2)
200Assert.Contains("Verification email sent.", await response.Content.ReadAsStringAsync()); 271return JsonConvert.DeserializeObject<JObject>(await download.Content.ReadAsStringAsync());
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
452transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
41Assert.Contains("<h1>Bonjour</h1>", await response.Content.ReadAsStringAsync());
LocalizationTest.cs (1)
118Assert.Equal(expected, await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
87var data = await response.Content.ReadAsStringAsync(); 133var data = await response.Content.ReadAsStringAsync(); 209var data = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Mvc.FunctionalTests (651)
AntiforgeryTests.cs (5)
58var responseBody = await getResponse.Content.ReadAsStringAsync(); 83Assert.Equal("OK", await response.Content.ReadAsStringAsync()); 110var responseBody = await getResponse.Content.ReadAsStringAsync(); 133Assert.Equal("OK", await response.Content.ReadAsStringAsync()); 141var responseBody = await getResponse.Content.ReadAsStringAsync();
ApiBehaviorTest.cs (13)
64await response.Content.ReadAsStringAsync(), 129var content = await response.Content.ReadAsStringAsync(); 157var result = JsonConvert.DeserializeObject<Contact>(await response.Content.ReadAsStringAsync()); 178var result = JsonConvert.DeserializeObject<ContactRequest>(await response.Content.ReadAsStringAsync()); 194var result = JsonConvert.DeserializeObject<Contact>(await response.Content.ReadAsStringAsync()); 211var result = JsonConvert.DeserializeObject<Contact>(await response.Content.ReadAsStringAsync()); 270var result = await response.Content.ReadAsStringAsync(); 285var result = await response.Content.ReadAsStringAsync(); 299var content = await response.Content.ReadAsStringAsync(); 328var content = await response.Content.ReadAsStringAsync(); 346var content = await response.Content.ReadAsStringAsync(); 359var content = await response.Content.ReadAsStringAsync(); 452var content = await response.Content.ReadAsStringAsync();
ApiExplorerTest.cs (55)
41var body = await response.Content.ReadAsStringAsync(); 54var body = await response.Content.ReadAsStringAsync(); 67var body = await response.Content.ReadAsStringAsync(); 80var body = await response.Content.ReadAsStringAsync(); 93var body = await response.Content.ReadAsStringAsync(); 107var body = await response.Content.ReadAsStringAsync(); 121var body = await response.Content.ReadAsStringAsync(); 135var body = await response.Content.ReadAsStringAsync(); 149var body = await response.Content.ReadAsStringAsync(); 163var body = await response.Content.ReadAsStringAsync(); 177var body = await response.Content.ReadAsStringAsync(); 200var body = await response.Content.ReadAsStringAsync(); 223var body = await response.Content.ReadAsStringAsync(); 245var body = await response.Content.ReadAsStringAsync(); 274var body = await response.Content.ReadAsStringAsync(); 310var body = await response.Content.ReadAsStringAsync(); 345var body = await response.Content.ReadAsStringAsync(); 369var body = await response.Content.ReadAsStringAsync(); 387var body = await response.Content.ReadAsStringAsync(); 401var body = await response.Content.ReadAsStringAsync(); 422var body = await response.Content.ReadAsStringAsync(); 445var body = await response.Content.ReadAsStringAsync(); 464var body = await response.Content.ReadAsStringAsync(); 484var body = await response.Content.ReadAsStringAsync(); 508var body = await response.Content.ReadAsStringAsync(); 528var body = await response.Content.ReadAsStringAsync(); 551var body = await response.Content.ReadAsStringAsync(); 573var body = await response.Content.ReadAsStringAsync(); 594var body = await response.Content.ReadAsStringAsync(); 618var body = await response.Content.ReadAsStringAsync(); 650var body = await response.Content.ReadAsStringAsync(); 682var body = await response.Content.ReadAsStringAsync(); 714var body = await response.Content.ReadAsStringAsync(); 744var body = await response.Content.ReadAsStringAsync(); 781var body = await response.Content.ReadAsStringAsync(); 816var body = await response.Content.ReadAsStringAsync(); 846var body = await response.Content.ReadAsStringAsync(); 872var body = await response.Content.ReadAsStringAsync(); 896var body = await response.Content.ReadAsStringAsync(); 925var body = await response.Content.ReadAsStringAsync(); 951var body = await response.Content.ReadAsStringAsync(); 969var body = await response.Content.ReadAsStringAsync(); 994var body = await response.Content.ReadAsStringAsync(); 1018var body = await response.Content.ReadAsStringAsync(); 1042var body = await response.Content.ReadAsStringAsync(); 1066var body = await response.Content.ReadAsStringAsync(); 1110var body = await response.Content.ReadAsStringAsync(); 1142var body = await response.Content.ReadAsStringAsync(); 1329var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1360var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1395var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1430var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1470var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1511var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1540var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync();
ApplicationModelTest.cs (10)
39var body = await response.Content.ReadAsStringAsync(); 52var body = await response.Content.ReadAsStringAsync(); 65var body = await response.Content.ReadAsStringAsync(); 78var body = await response.Content.ReadAsStringAsync(); 91var body = await response.Content.ReadAsStringAsync(); 104var body = await response.Content.ReadAsStringAsync(); 117var body = await response.Content.ReadAsStringAsync(); 135var body = await response.Content.ReadAsStringAsync(); 186var content = await response.Content.ReadAsStringAsync(); 204var body = await response.Content.ReadAsStringAsync();
AsyncActionsTests.cs (24)
35var responseBody = await response.Content.ReadAsStringAsync(); 47var responseBody = await response.Content.ReadAsStringAsync(); 59var responseBody = await response.Content.ReadAsStringAsync(); 70var responseBody = await response.Content.ReadAsStringAsync(); 82var responseBody = await response.Content.ReadAsStringAsync(); 93var responseBody = await response.Content.ReadAsStringAsync(); 105var responseBody = await response.Content.ReadAsStringAsync(); 116var responseBody = await response.Content.ReadAsStringAsync(); 128var responseBody = await response.Content.ReadAsStringAsync(); 139var responseBody = await response.Content.ReadAsStringAsync(); 151var responseBody = await response.Content.ReadAsStringAsync(); 162var responseBody = await response.Content.ReadAsStringAsync(); 174var responseBody = await response.Content.ReadAsStringAsync(); 185var responseBody = await response.Content.ReadAsStringAsync(); 197var responseBody = await response.Content.ReadAsStringAsync(); 208var responseBody = await response.Content.ReadAsStringAsync(); 220var responseBody = await response.Content.ReadAsStringAsync(); 231var responseBody = await response.Content.ReadAsStringAsync(); 243var responseBody = await response.Content.ReadAsStringAsync(); 254var responseBody = await response.Content.ReadAsStringAsync(); 266var responseBody = await response.Content.ReadAsStringAsync(); 277var responseBody = await response.Content.ReadAsStringAsync(); 289var responseBody = await response.Content.ReadAsStringAsync(); 323var content = await response.Content.ReadAsStringAsync();
AsyncEnumerableTestBase.cs (3)
47var content = await response.Content.ReadAsStringAsync(); 65var content = await response.Content.ReadAsStringAsync(); 84var content = await response.Content.ReadAsStringAsync();
AuthMiddlewareAndFilterTestBase.cs (1)
289return await response.Content.ReadAsStringAsync();
BasicTests.cs (19)
52var responseContent = await response.Content.ReadAsStringAsync(); 72var responseContent = await response.Content.ReadAsStringAsync(); 96var responseContent = await response.Content.ReadAsStringAsync(); 116var responseContent = await response.Content.ReadAsStringAsync(); 135var responseContent = await response.Content.ReadAsStringAsync(); 148var responseContent = await response.Content.ReadAsStringAsync(); 166Assert.Empty(await response.Content.ReadAsStringAsync()); 180var responseContent = await result.Content.ReadAsStringAsync(); 248var actualBody = await response.Content.ReadAsStringAsync(); 271var actualBody = await response.Content.ReadAsStringAsync(); 294var actualBody = await response.Content.ReadAsStringAsync(); 342var responseData = await response.Content.ReadAsStringAsync(); 354var responseData = await response.Content.ReadAsStringAsync(); 540var content = await response.Content.ReadAsStringAsync(); 563var content = await response.Content.ReadAsStringAsync(); 585var content = await response.Content.ReadAsStringAsync(); 605var content = await response.Content.ReadAsStringAsync(); 617var content = await response.Content.ReadAsStringAsync(); 655var content = await response.Content.ReadAsStringAsync();
ComponentRenderingFunctionalTests.cs (5)
43var content = await response.Content.ReadAsStringAsync(); 59var content = await response.Content.ReadAsStringAsync(); 90var content = await response.Content.ReadAsStringAsync(); 106var content = await response.Content.ReadAsStringAsync(); 168var content = await response.Content.ReadAsStringAsync();
ConsumesAttributeEndpointRoutingTests.cs (1)
20var body = await response.Content.ReadAsStringAsync();
ConsumesAttributeTests.cs (1)
20var body = await response.Content.ReadAsStringAsync();
ConsumesAttributeTestsBase.cs (7)
53var body = await response.Content.ReadAsStringAsync(); 70var body = await response.Content.ReadAsStringAsync(); 106var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync()); 128var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync()); 152var responseString = await response.Content.ReadAsStringAsync(); 172var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync()); 195var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync());
ContentNegotiationTest.cs (19)
50var body = await response.Content.ReadAsStringAsync(); 67var body = await response.Content.ReadAsStringAsync(); 83var body = await response.Content.ReadAsStringAsync(); 137var actual = await response.Content.ReadAsStringAsync(); 162var actual = await response.Content.ReadAsStringAsync(); 180var actual = await response.Content.ReadAsStringAsync(); 225var actualResponseBody = await response.Content.ReadAsStringAsync(); 243var body = await response.Content.ReadAsStringAsync(); 261var body = await response.Content.ReadAsStringAsync(); 278var body = await response.Content.ReadAsStringAsync(); 295var body = await response.Content.ReadAsStringAsync(); 313var body = await response.Content.ReadAsStringAsync(); 329var body = await response.Content.ReadAsStringAsync(); 354var body = await response.Content.ReadAsStringAsync(); 376var actualBody = await response.Content.ReadAsStringAsync(); 394var actualBody = await response.Content.ReadAsStringAsync(); 480var body = await response.Content.ReadAsStringAsync(); 497var body = await response.Content.ReadAsStringAsync(); 536var body = await response.Content.ReadAsStringAsync();
ControllerEndpointFiltersTest.cs (1)
68var content = await response.Content.ReadAsStringAsync();
ControllerFromServicesTests.cs (3)
40var responseText = await response.Content.ReadAsStringAsync(); 85Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 101Assert.Equal(expected, await response.Content.ReadAsStringAsync());
CorsTestsBase.cs (13)
52var content = await response.Content.ReadAsStringAsync(); 71var content = await response.Content.ReadAsStringAsync(); 89var content = await response.Content.ReadAsStringAsync(); 146var content = await response.Content.ReadAsStringAsync(); 178var content = await response.Content.ReadAsStringAsync(); 214var content = await response.Content.ReadAsStringAsync(); 236var content = await response.Content.ReadAsStringAsync(); 260var content = await response.Content.ReadAsStringAsync(); 289var content = await response.Content.ReadAsStringAsync(); 321var content = await response.Content.ReadAsStringAsync(); 356var content = await response.Content.ReadAsStringAsync(); 384var content = await response.Content.ReadAsStringAsync(); 407var content = await response.Content.ReadAsStringAsync();
CustomValueProviderTest.cs (4)
47var content = await response.Content.ReadAsStringAsync(); 64var content = await response.Content.ReadAsStringAsync(); 81var content = await response.Content.ReadAsStringAsync(); 98var content = await response.Content.ReadAsStringAsync();
DataAnnotationTests.cs (1)
44var content = await response.Content.ReadAsStringAsync();
DoNotRespectBrowserAcceptHeaderTests.cs (4)
54var responseData = await response.Content.ReadAsStringAsync(); 82var responseData = await response.Content.ReadAsStringAsync(); 114var responseData = await response.Content.ReadAsStringAsync(); 142var responseData = await response.Content.ReadAsStringAsync();
ErrorPageTests.cs (6)
68var content = await response.Content.ReadAsStringAsync(); 103var content = await response.Content.ReadAsStringAsync(); 124var content = await response.Content.ReadAsStringAsync(); 144var content = await response.Content.ReadAsStringAsync(); 162var content = await response.Content.ReadAsStringAsync(); 177var content = await response.Content.ReadAsStringAsync();
FileResultTests.cs (39)
47var body = await response.Content.ReadAsStringAsync(); 69var body = await response.Content.ReadAsStringAsync(); 91var body = await response.Content.ReadAsStringAsync(); 112var body = await response.Content.ReadAsStringAsync(); 133var body = await response.Content.ReadAsStringAsync(); 155var body = await response.Content.ReadAsStringAsync(); 176var body = await response.Content.ReadAsStringAsync(); 194var body = await response.Content.ReadAsStringAsync(); 219var body = await response.Content.ReadAsStringAsync(); 238var body = await response.Content.ReadAsStringAsync(); 258var body = await response.Content.ReadAsStringAsync(); 292var body = await response.Content.ReadAsStringAsync(); 317var body = await response.Content.ReadAsStringAsync(); 334var body = await response.Content.ReadAsStringAsync(); 355var body = await response.Content.ReadAsStringAsync(); 378var body = await response.Content.ReadAsStringAsync(); 393var body = await response.Content.ReadAsStringAsync(); 415var body = await response.Content.ReadAsStringAsync(); 440var body = await response.Content.ReadAsStringAsync(); 454var body = await response.Content.ReadAsStringAsync(); 476var body = await response.Content.ReadAsStringAsync(); 511var body = await response.Content.ReadAsStringAsync(); 535var body = await response.Content.ReadAsStringAsync(); 552var body = await response.Content.ReadAsStringAsync(); 579var body = await response.Content.ReadAsStringAsync(); 594var body = await response.Content.ReadAsStringAsync(); 619var body = await response.Content.ReadAsStringAsync(); 644var body = await response.Content.ReadAsStringAsync(); 658var body = await response.Content.ReadAsStringAsync(); 683var body = await response.Content.ReadAsStringAsync(); 717var body = await response.Content.ReadAsStringAsync(); 744var body = await response.Content.ReadAsStringAsync(); 770var body = await response.Content.ReadAsStringAsync(); 794var body = await response.Content.ReadAsStringAsync(); 813var body = await response.Content.ReadAsStringAsync(); 836var body = await response.Content.ReadAsStringAsync(); 860var body = await response.Content.ReadAsStringAsync(); 884var body = await response.Content.ReadAsStringAsync(); 921var body = await response.Content.ReadAsStringAsync();
FiltersTest.cs (5)
40Assert.Equal("Hello World!", await response.Content.ReadAsStringAsync()); 51Assert.Equal("Hello World!", await response.Content.ReadAsStringAsync()); 79await response.Content.ReadAsStringAsync()); 97Assert.Equal("Can't process this!", await response.Content.ReadAsStringAsync()); 124Assert.Equal("Service filter content", await response.Content.ReadAsStringAsync());
GlobalAuthorizationFilterTestBase.cs (1)
56var body = await response.Content.ReadAsStringAsync();
HtmlGenerationTest.cs (12)
110var responseContent = await response.Content.ReadAsStringAsync(); 227var responseContent = await response.Content.ReadAsStringAsync(); 267var responseContent = await response.Content.ReadAsStringAsync(); 306var responseContent = await response.Content.ReadAsStringAsync(); 337var responseContent = await response.Content.ReadAsStringAsync(); 431var response1 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 433var response2 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 447var response3 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 449var response4 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 462var response5 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 464var response6 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 506var response2 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync();
Infrastructure\HttpClientExtensions.cs (2)
24var content = await response.Content.ReadAsStringAsync(); 45responseContent = await response.Content.ReadAsStringAsync();
InputFormatterTests.cs (8)
52Assert.Equal(sampleInputInt.ToString(CultureInfo.InvariantCulture), await response.Content.ReadAsStringAsync()); 65var responseBody = await response.Content.ReadAsStringAsync(); 95var result = JsonConvert.DeserializeObject<DerivedModel>(await response.Content.ReadAsStringAsync()); 107var result = JObject.Parse(await response.Content.ReadAsStringAsync()); 127var result = JsonConvert.DeserializeObject<DerivedModel>(await response.Content.ReadAsStringAsync()); 139var result = JObject.Parse(await response.Content.ReadAsStringAsync()); 159var result = JsonConvert.DeserializeObject<DerivedModel>(await response.Content.ReadAsStringAsync()); 171var result = JObject.Parse(await response.Content.ReadAsStringAsync());
InputObjectValidationTests.cs (13)
83await response.Content.ReadAsStringAsync()); 111await response.Content.ReadAsStringAsync()); 126await response.Content.ReadAsStringAsync()); 146var responseContent = await response.Content.ReadAsStringAsync(); 174var responseContent = await response.Content.ReadAsStringAsync(); 196Assert.Equal("xyz", await response.Content.ReadAsStringAsync()); 216var responseContent = await response.Content.ReadAsStringAsync(); 236var responseContent = await response.Content.ReadAsStringAsync(); 257var responseContent = await response.Content.ReadAsStringAsync(); 278var content = await response.Content.ReadAsStringAsync(); 299var responseContent = await response.Content.ReadAsStringAsync(); 328var responseContent = await response.Content.ReadAsStringAsync(); 360var responseContent = await response.Content.ReadAsStringAsync();
InputParentValidationTests.cs (2)
56var responseContent = await response.Content.ReadAsStringAsync(); 75var responseContent = await response.Content.ReadAsStringAsync();
InputValidationTests.cs (2)
51var responseText = await response.Content.ReadAsStringAsync(); 86var responseText = await response.Content.ReadAsStringAsync();
JsonInputFormatterTestBase.cs (5)
54Assert.Equal(sampleInputInt.ToString(CultureInfo.InvariantCulture), await response.Content.ReadAsStringAsync()); 70var responseBody = await response.Content.ReadAsStringAsync(); 88var responseBody = await response.Content.ReadAsStringAsync(); 104var responseBody = await response.Content.ReadAsStringAsync(); 229var responseBody = await response.Content.ReadAsStringAsync();
JsonOutputFormatterTestBase.cs (11)
61var actualContent = await response.Content.ReadAsStringAsync(); 85Assert.Equal("2", await response.Content.ReadAsStringAsync()); 96Assert.Equal("\"Hello world\"", await response.Content.ReadAsStringAsync()); 107Assert.Equal("\"Hello Mr. 🦊\"", await response.Content.ReadAsStringAsync()); 118Assert.Equal("\"Une bête de cirque\"", await response.Content.ReadAsStringAsync()); 132Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 146Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 160Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 175Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 189var obj = JObject.Parse(await response.Content.ReadAsStringAsync()); 207Assert.Equal(expected, await response.Content.ReadAsStringAsync());
JsonPatchInputFormatterTest.cs (5)
45var body = await response.Content.ReadAsStringAsync(); 65var body = await response.Content.ReadAsStringAsync(); 85var body = await response.Content.ReadAsStringAsync(); 106var body = await response.Content.ReadAsStringAsync(); 127var body = await response.Content.ReadAsStringAsync();
JsonResultWithNewtonsoftJsonTest.cs (6)
47var content = await response.Content.ReadAsStringAsync(); 69var content = await response.Content.ReadAsStringAsync(); 87var content = await response.Content.ReadAsStringAsync(); 105var content = await response.Content.ReadAsStringAsync(); 122var content = await response.Content.ReadAsStringAsync(); 138var content = await response.Content.ReadAsStringAsync();
JsonResultWithSystemTextJsonTest.cs (6)
47var content = await response.Content.ReadAsStringAsync(); 69var content = await response.Content.ReadAsStringAsync(); 87var content = await response.Content.ReadAsStringAsync(); 105var content = await response.Content.ReadAsStringAsync(); 122var content = await response.Content.ReadAsStringAsync(); 138var content = await response.Content.ReadAsStringAsync();
KeyedServicesTests.cs (5)
43Assert.Equal("OK", await okResponse.Content.ReadAsStringAsync()); 44Assert.Equal("NOT OK", await notokResponse.Content.ReadAsStringAsync()); 58Assert.Equal("OK,NOT OK", await response.Content.ReadAsStringAsync()); 72Assert.Equal("DEFAULT", await response.Content.ReadAsStringAsync()); 86Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
LinkGenerationTests.cs (2)
62var responseContent = await response.Content.ReadAsStringAsync(); 84var responseContent = await response.Content.ReadAsStringAsync();
LinkGeneratorTest.cs (18)
42var responseContent = await response.Content.ReadAsStringAsync(); 54var responseContent = await response.Content.ReadAsStringAsync(); 66var responseContent = await response.Content.ReadAsStringAsync(); 78var responseContent = await response.Content.ReadAsStringAsync(); 90var responseContent = await response.Content.ReadAsStringAsync(); 102var responseContent = await response.Content.ReadAsStringAsync(); 116var responseContent = await response.Content.ReadAsStringAsync(); 128var responseContent = await response.Content.ReadAsStringAsync(); 140var responseContent = await response.Content.ReadAsStringAsync(); 152var responseContent = await response.Content.ReadAsStringAsync(); 164var responseContent = await response.Content.ReadAsStringAsync(); 176var responseContent = await response.Content.ReadAsStringAsync(); 188var responseContent = await response.Content.ReadAsStringAsync(); 200var responseContent = await response.Content.ReadAsStringAsync(); 212var responseContent = await response.Content.ReadAsStringAsync(); 224var responseContent = await response.Content.ReadAsStringAsync(); 236var responseContent = await response.Content.ReadAsStringAsync(); 248var responseContent = await response.Content.ReadAsStringAsync();
NewtonsoftJsonInputFormatterTest.cs (1)
20var responseBody = await response.Content.ReadAsStringAsync();
NewtonsoftJsonOutputFormatterTest.cs (1)
35var actualBody = await response.Content.ReadAsStringAsync();
NonNullableReferenceTypesTest.cs (4)
42var content = await response.Content.ReadAsStringAsync(); 66content = await response.Content.ReadAsStringAsync(); 84var content = await response.Content.ReadAsStringAsync(); 120var content = await response.Content.ReadAsStringAsync();
OutputFormatterTest.cs (4)
47var body = await response.Content.ReadAsStringAsync(); 76var body = await response.Content.ReadAsStringAsync(); 94var body = await response.Content.ReadAsStringAsync(); 114var body = await response.Content.ReadAsStringAsync();
RazorBuildTest.cs (4)
57var responseBody = await response.Content.ReadAsStringAsync(); 73var responseBody = await response.Content.ReadAsStringAsync(); 82var responseBody = await response.Content.ReadAsStringAsync(); 95var responseBody = await response.Content.ReadAsStringAsync();
RazorPageModelTest.cs (7)
55var content = await response.Content.ReadAsStringAsync(); 80var content = await response.Content.ReadAsStringAsync(); 105var content = await response.Content.ReadAsStringAsync(); 131var content = await response.Content.ReadAsStringAsync(); 156var content = await response.Content.ReadAsStringAsync(); 181var content = await response.Content.ReadAsStringAsync(); 191var getResponseBody = await getResponse.Content.ReadAsStringAsync();
RazorPagesTest.cs (45)
52var responseContent = await response.Content.ReadAsStringAsync(); 97var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 110var content = await response.Content.ReadAsStringAsync(); 129var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 141var content = await response.Content.ReadAsStringAsync(); 210var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 223var content = await response.Content.ReadAsStringAsync(); 242var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 254var content = await response.Content.ReadAsStringAsync(); 293var content = await routeResponse.Content.ReadAsStringAsync(); 307var content = await response.Content.ReadAsStringAsync(); 323var content = await response.Content.ReadAsStringAsync(); 353Assert.Equal("Parameter cannot be null.", await response.Content.ReadAsStringAsync()); 370var content = await response.Content.ReadAsStringAsync(); 386var content = await response.Content.ReadAsStringAsync(); 402var content = await response.Content.ReadAsStringAsync(); 412var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 426var content = await response.Content.ReadAsStringAsync(); 445var content = await response.Content.ReadAsStringAsync(); 474var content = await response.Content.ReadAsStringAsync(); 490var content = await response.Content.ReadAsStringAsync(); 515var content = await response.Content.ReadAsStringAsync(); 540var content = await response.Content.ReadAsStringAsync(); 564var content = await response.Content.ReadAsStringAsync(); 575var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 589var content = await response.Content.ReadAsStringAsync(); 602content = await response.Content.ReadAsStringAsync(); 633var content = await response.Content.ReadAsStringAsync(); 686var content = await response.Content.ReadAsStringAsync(); 714var content = await response.Content.ReadAsStringAsync(); 741var content = await response.Content.ReadAsStringAsync(); 772var content = await response.Content.ReadAsStringAsync(); 801var content = await response.Content.ReadAsStringAsync(); 826var result = JObject.Parse(await response.Content.ReadAsStringAsync()); 857var content = await response.Content.ReadAsStringAsync(); 881var content = await response.Content.ReadAsStringAsync(); 930var content = await response.Content.ReadAsStringAsync(); 1255Assert.Equal(expected, (await response.Content.ReadAsStringAsync()).Trim()); 1302var responseContent = await response.Content.ReadAsStringAsync(); 1317var content = await response.Content.ReadAsStringAsync(); 1343var responseContent = await response.Content.ReadAsStringAsync(); 1463var content = await response.Content.ReadAsStringAsync(); 1479var content = await response.Content.ReadAsStringAsync(); 1495var content = await response.Content.ReadAsStringAsync(); 1503var getResponseBody = await getResponse.Content.ReadAsStringAsync();
RazorPagesWithBasePathTest.cs (12)
50var content = await response.Content.ReadAsStringAsync(); 63var content = await response.Content.ReadAsStringAsync(); 76var content = await response.Content.ReadAsStringAsync(); 89var content = await response.Content.ReadAsStringAsync(); 102var content = await response.Content.ReadAsStringAsync(); 420var content = await response.Content.ReadAsStringAsync(); 429var token = AntiforgeryTestHelper.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), ""); 449var content = await response.Content.ReadAsStringAsync(); 458var token = AntiforgeryTestHelper.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), ""); 486var token = AntiforgeryTestHelper.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), ""); 506var responseText = await response.Content.ReadAsStringAsync(); 758var responseBody = await response.Content.ReadAsStringAsync();
RazorPagesWithEndpointRoutingTest.cs (1)
50var content = await response.Content.ReadAsStringAsync();
RazorViewLocationSpecificationTest.cs (1)
115var content = await (await Client.GetAsync(path)).Content.ReadAsStringAsync();
RemoteAttributeValidationTest.cs (3)
52var responseContent = await response.Content.ReadAsStringAsync(); 76var responseContent = await response.Content.ReadAsStringAsync(); 105var responseContent = await response.Content.ReadAsStringAsync();
RequestFormLimitsTest.cs (3)
75var result = await response.Content.ReadAsStringAsync(); 101var result = await response.Content.ReadAsStringAsync(); 124var result = await response.Content.ReadAsStringAsync();
RequestServicesEndpointRoutingTest.cs (1)
20var body = await response.Content.ReadAsStringAsync();
RequestServicesTest.cs (1)
20var body = await response.Content.ReadAsStringAsync();
RequestServicesTestBase.cs (3)
61var body = (await response.Content.ReadAsStringAsync()).Trim(); 81var body = (await response.Content.ReadAsStringAsync()).Trim(); 101var body1 = (await response1.Content.ReadAsStringAsync()).Trim();
RequestSizeLimitTest.cs (2)
52var result = await response.Content.ReadAsStringAsync(); 91var actual = await response.Content.ReadAsStringAsync();
RespectBrowserAcceptHeaderTests.cs (2)
54var responseData = await response.Content.ReadAsStringAsync(); 73var responseData = await response.Content.ReadAsStringAsync();
RoutingDynamicOrderTest.cs (1)
137var content = await response.Content.ReadAsStringAsync();
RoutingDynamicTest.cs (7)
44var content = await response.Content.ReadAsStringAsync(); 59var content = await response.Content.ReadAsStringAsync(); 74var content = await response.Content.ReadAsStringAsync(); 104var content = await response.Content.ReadAsStringAsync(); 120var content = await response.Content.ReadAsStringAsync(); 136var content = await response.Content.ReadAsStringAsync(); 172var content = await response.Content.ReadAsStringAsync();
RoutingEndpointRoutingTest.cs (22)
21var body = await response.Content.ReadAsStringAsync(); 42var body = await response.Content.ReadAsStringAsync(); 68var body = await response.Content.ReadAsStringAsync(); 84var body = await response.Content.ReadAsStringAsync(); 100var body = await response.Content.ReadAsStringAsync(); 128var body = await response.Content.ReadAsStringAsync(); 148var body = await response.Content.ReadAsStringAsync(); 168var body = await response.Content.ReadAsStringAsync(); 188var body = await response.Content.ReadAsStringAsync(); 206var body = await response.Content.ReadAsStringAsync(); 221var body = await response.Content.ReadAsStringAsync(); 238var body = await response.Content.ReadAsStringAsync(); 265var body = await response.Content.ReadAsStringAsync(); 290var body = await response.Content.ReadAsStringAsync(); 305var body = await response.Content.ReadAsStringAsync(); 325var body = await response.Content.ReadAsStringAsync(); 344var body = await response.Content.ReadAsStringAsync(); 363var body = await response.Content.ReadAsStringAsync(); 381var body = await response.Content.ReadAsStringAsync(); 396var body = await response.Content.ReadAsStringAsync(); 411var body = await response.Content.ReadAsStringAsync(); 426var body = await response.Content.ReadAsStringAsync();
RoutingFallbackTest.cs (6)
45var content = await response.Content.ReadAsStringAsync(); 60var content = await response.Content.ReadAsStringAsync(); 76var content = await response.Content.ReadAsStringAsync(); 92var content = await response.Content.ReadAsStringAsync(); 108var content = await response.Content.ReadAsStringAsync(); 124var content = await response.Content.ReadAsStringAsync();
RoutingTests.cs (3)
22var body = await response.Content.ReadAsStringAsync(); 51var body = await response.Content.ReadAsStringAsync(); 73var body = await response.Content.ReadAsStringAsync();
RoutingTestsBase.cs (63)
49var body = await response.Content.ReadAsStringAsync(); 67var body = await response.Content.ReadAsStringAsync(); 93var body = await response.Content.ReadAsStringAsync(); 115var body = await response.Content.ReadAsStringAsync(); 135var body = await response.Content.ReadAsStringAsync(); 164var body = await response.Content.ReadAsStringAsync(); 175body = await response.Content.ReadAsStringAsync(); 196var body = await response.Content.ReadAsStringAsync(); 208var body = await response.Content.ReadAsStringAsync(); 241var body = await response.Content.ReadAsStringAsync(); 253var body = await response.Content.ReadAsStringAsync(); 266var body = await response.Content.ReadAsStringAsync(); 290var body = await response.Content.ReadAsStringAsync(); 324var body = await response.Content.ReadAsStringAsync(); 361var body = await response.Content.ReadAsStringAsync(); 376var body = await response.Content.ReadAsStringAsync(); 409var body = await response.Content.ReadAsStringAsync(); 474var body = await response.Content.ReadAsStringAsync(); 501var body = await response.Content.ReadAsStringAsync(); 543var body = await response.Content.ReadAsStringAsync(); 571var body = await response.Content.ReadAsStringAsync(); 637var body = await response.Content.ReadAsStringAsync(); 654var body = await response.Content.ReadAsStringAsync(); 684var body = await response.Content.ReadAsStringAsync(); 711var body = await response.Content.ReadAsStringAsync(); 736var body = await response.Content.ReadAsStringAsync(); 756var body = await response.Content.ReadAsStringAsync(); 779var body = await response.Content.ReadAsStringAsync(); 801var body = await response.Content.ReadAsStringAsync(); 826var body = await response.Content.ReadAsStringAsync(); 846var body = await response.Content.ReadAsStringAsync(); 869var body = await response.Content.ReadAsStringAsync(); 890var body = await response.Content.ReadAsStringAsync(); 911var body = await response.Content.ReadAsStringAsync(); 932var body = await response.Content.ReadAsStringAsync(); 987var body = await response.Content.ReadAsStringAsync(); 1007var body = await response.Content.ReadAsStringAsync(); 1027var body = await response.Content.ReadAsStringAsync(); 1047var body = await response.Content.ReadAsStringAsync(); 1071var body = await response.Content.ReadAsStringAsync(); 1089var body = await response.Content.ReadAsStringAsync(); 1111var body = await response.Content.ReadAsStringAsync(); 1129var body = await response.Content.ReadAsStringAsync(); 1151var body = await response.Content.ReadAsStringAsync(); 1172var body = await response.Content.ReadAsStringAsync(); 1193var body = await response.Content.ReadAsStringAsync(); 1215var body = await response.Content.ReadAsStringAsync(); 1237var body = await response.Content.ReadAsStringAsync(); 1259var body = await response.Content.ReadAsStringAsync(); 1281var body = await response.Content.ReadAsStringAsync(); 1301var body = await response.Content.ReadAsStringAsync(); 1322var body = await response.Content.ReadAsStringAsync(); 1343var body = await response.Content.ReadAsStringAsync(); 1363var body = await response.Content.ReadAsStringAsync(); 1384var body = await response.Content.ReadAsStringAsync(); 1405var body = await response.Content.ReadAsStringAsync(); 1426var body = await response.Content.ReadAsStringAsync(); 1447var body = await response.Content.ReadAsStringAsync(); 1468var body = await response.Content.ReadAsStringAsync(); 1494var body = await response.Content.ReadAsStringAsync(); 1546var body = await response.Content.ReadAsStringAsync(); 1580var content = await response.Content.ReadAsStringAsync(); 1592var content = await response.Content.ReadAsStringAsync();
RoutingWithoutRazorPagesTestsBase.cs (2)
45var body = await response.Content.ReadAsStringAsync(); 66var body = await response.Content.ReadAsStringAsync();
SerializableErrorTests.cs (4)
62var responseData = await response.Content.ReadAsStringAsync(); 86var responseData = await response.Content.ReadAsStringAsync(); 129var responseData = await response.Content.ReadAsStringAsync(); 170var responseData = await response.Content.ReadAsStringAsync();
SimpleWithWebApplicationBuilderTests.cs (5)
63var content = await response.Content.ReadAsStringAsync(); 78var content = await response.Content.ReadAsStringAsync(); 94var content = await response.Content.ReadAsStringAsync(); 133var content = await response.Content.ReadAsStringAsync(); 277var actual = await response.Content.ReadAsStringAsync();
StreamOutputFormatterTest.cs (1)
39var body = await response.Content.ReadAsStringAsync();
SystemTextJsonOutputFormatterTest.cs (4)
24Assert.Equal("\"Hello Mr. \\uD83E\\uDD8A\"", await response.Content.ReadAsStringAsync()); 43Assert.Equal("\"Une b\\u00EAte de cirque\"", await response.Content.ReadAsStringAsync()); 66Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 81Assert.Equal(expected, await response.Content.ReadAsStringAsync());
TagHelperComponentTagHelperTest.cs (3)
44var responseContent = await response.Content.ReadAsStringAsync(); 64var responseContent = await response.Content.ReadAsStringAsync(); 84var responseContent = await response.Content.ReadAsStringAsync();
TagHelpersFromServicesTest.cs (1)
38var responseText = await response.Content.ReadAsStringAsync();
TagHelpersTest.cs (7)
64var responseContent = await response.Content.ReadAsStringAsync(); 101var responseContent = await response.Content.ReadAsStringAsync(); 116var responseContent = await response.Content.ReadAsStringAsync(); 218var responseContent = await response.Content.ReadAsStringAsync(); 246var responseContent = await response.Content.ReadAsStringAsync(); 274var responseContent = await response.Content.ReadAsStringAsync(); 296var responseContent = await response.Content.ReadAsStringAsync();
TempDataInCookiesTest.cs (2)
93var body = await response.Content.ReadAsStringAsync(); 149var body = await response.Content.ReadAsStringAsync();
TempDataInCookiesUsingCookieConsentTest.cs (1)
59var body = await response.Content.ReadAsStringAsync();
TempDataPropertyTest.cs (6)
55var body = await response.Content.ReadAsStringAsync(); 83var body = await response.Content.ReadAsStringAsync(); 112var body = await response.Content.ReadAsStringAsync(); 120body = await response.Content.ReadAsStringAsync(); 149var body = await response.Content.ReadAsStringAsync(); 156body = await response.Content.ReadAsStringAsync();
TempDataTestBase.cs (9)
56var body = await response.Content.ReadAsStringAsync(); 81var body = await response.Content.ReadAsStringAsync(); 112var body = await response.Content.ReadAsStringAsync(); 137var body = await peekResponse.Content.ReadAsStringAsync(); 145body = await getResponse.Content.ReadAsStringAsync(); 177var body = await response.Content.ReadAsStringAsync(); 216var body = await response.Content.ReadAsStringAsync(); 234var responseBody = await response.Content.ReadAsStringAsync(); 252var responseBody = await response.Content.ReadAsStringAsync();
TestingInfrastructureTests.cs (2)
107var modifiedHeaderWasSent = await response.Content.ReadAsStringAsync(); 150Assert.Equal("Test", await response.Content.ReadAsStringAsync());
UrlResolutionTest.cs (2)
48var responseContent = await response.Content.ReadAsStringAsync(); 65var responseContent = await response.Content.ReadAsStringAsync();
VersioningEndpointRoutingTests.cs (3)
21var body = await response.Content.ReadAsStringAsync(); 40var body = await response.Content.ReadAsStringAsync(); 61var body = await response.Content.ReadAsStringAsync();
VersioningTests.cs (1)
20var body = await response.Content.ReadAsStringAsync();
VersioningTestsBase.cs (22)
53var body = await response.Content.ReadAsStringAsync(); 77var body = await response.Content.ReadAsStringAsync(); 97var body = await response.Content.ReadAsStringAsync(); 118var body = await response.Content.ReadAsStringAsync(); 137var body = await response.Content.ReadAsStringAsync(); 156var body = await response.Content.ReadAsStringAsync(); 183var body = await response.Content.ReadAsStringAsync(); 232var body = await response.Content.ReadAsStringAsync(); 277var body = await response.Content.ReadAsStringAsync(); 299var body = await response.Content.ReadAsStringAsync(); 320var body = await response.Content.ReadAsStringAsync(); 341var body = await response.Content.ReadAsStringAsync(); 363var body = await response.Content.ReadAsStringAsync(); 384var body = await response.Content.ReadAsStringAsync(); 403var body = await response.Content.ReadAsStringAsync(); 425var body = await response.Content.ReadAsStringAsync(); 446var body = await response.Content.ReadAsStringAsync(); 467var body = await response.Content.ReadAsStringAsync(); 491var body = await response.Content.ReadAsStringAsync(); 510var body = await response.Content.ReadAsStringAsync(); 529var body = await response.Content.ReadAsStringAsync(); 551var body = await response.Content.ReadAsStringAsync();
ViewComponentFromServicesTests.cs (1)
39var responseText = await response.Content.ReadAsStringAsync();
ViewEngineTests.cs (5)
82var body = await response.Content.ReadAsStringAsync(); 169var body = await response.Content.ReadAsStringAsync(); 259var body = await response.Content.ReadAsStringAsync(); 313var body = await response.Content.ReadAsStringAsync(); 431var body = await response.Content.ReadAsStringAsync();
XmlDataContractSerializerFormattersWrappingTest.cs (12)
52var result = await response.Content.ReadAsStringAsync(); 76var result = await response.Content.ReadAsStringAsync(); 100var result = await response.Content.ReadAsStringAsync(); 123var result = await response.Content.ReadAsStringAsync(); 146var result = await response.Content.ReadAsStringAsync(); 171var result = await response.Content.ReadAsStringAsync(); 194var result = await response.Content.ReadAsStringAsync(); 215var result = await response.Content.ReadAsStringAsync(); 236var content = await response.Content.ReadAsStringAsync(); 263var content = await response.Content.ReadAsStringAsync(); 278var content = await response.Content.ReadAsStringAsync(); 311var content = await response.Content.ReadAsStringAsync();
XmlDataContractSerializerInputFormatterTest.cs (1)
47var data = await response.Content.ReadAsStringAsync();
XmlOutputFormatterTests.cs (9)
54await response.Content.ReadAsStringAsync()); 75await response.Content.ReadAsStringAsync()); 99await response.Content.ReadAsStringAsync()); 120await response.Content.ReadAsStringAsync()); 143await response.Content.ReadAsStringAsync()); 181await response.Content.ReadAsStringAsync()); 201await response.Content.ReadAsStringAsync()); 222await response.Content.ReadAsStringAsync()); 243await response.Content.ReadAsStringAsync());
XmlSerializerFormattersWrappingTest.cs (12)
51var result = await response.Content.ReadAsStringAsync(); 72var result = await response.Content.ReadAsStringAsync(); 93var result = await response.Content.ReadAsStringAsync(); 113var result = await response.Content.ReadAsStringAsync(); 133var result = await response.Content.ReadAsStringAsync(); 155var result = await response.Content.ReadAsStringAsync(); 175var result = await response.Content.ReadAsStringAsync(); 193var result = await response.Content.ReadAsStringAsync(); 219var content = await response.Content.ReadAsStringAsync(); 246var content = await response.Content.ReadAsStringAsync(); 261var content = await response.Content.ReadAsStringAsync(); 293var content = await response.Content.ReadAsStringAsync();
XmlSerializerInputFormatterTests.cs (2)
48Assert.Equal(sampleInputInt.ToString(CultureInfo.InvariantCulture), await response.Content.ReadAsStringAsync()); 65var data = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.OutputCaching.Tests (5)
OutputCacheTests.cs (5)
1005s = await resp.Content.ReadAsStringAsync(); 1059Assert.Equal(await initialResponse.Content.ReadAsStringAsync(), await subsequentResponse.Content.ReadAsStringAsync()); 1077Assert.NotEqual(await initialResponse.Content.ReadAsStringAsync(), await subsequentResponse.Content.ReadAsStringAsync());
Microsoft.AspNetCore.ResponseCaching.Tests (4)
ResponseCachingTests.cs (4)
963Assert.Equal(await initialResponse.Content.ReadAsStringAsync(), await subsequentResponse.Content.ReadAsStringAsync()); 981Assert.NotEqual(await initialResponse.Content.ReadAsStringAsync(), await subsequentResponse.Content.ReadAsStringAsync());
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\MiddleWareTests.cs (1)
693var content = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Routing.FunctionalTests (30)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
53var actualContent = await response.Content.ReadAsStringAsync();
Benchmarks\RouterBenchmarkTest.cs (1)
54var actualContent = await response.Content.ReadAsStringAsync();
EndpointRoutingSampleTest.cs (10)
43Assert.Equal($"{branch} - API Get 5", await response.Content.ReadAsStringAsync()); 77var actualContent = await response.Content.ReadAsStringAsync(); 96var actualContent = await response.Content.ReadAsStringAsync(); 112var actualContent = await response.Content.ReadAsStringAsync(); 138var actualContent = await response.Content.ReadAsStringAsync(); 154var actualContent = await response.Content.ReadAsStringAsync(); 181var actualContent = await response.Content.ReadAsStringAsync(); 199var actualContent = await response.Content.ReadAsStringAsync(); 212var actualContent = await response.Content.ReadAsStringAsync(); 225var actualContent = await response.Content.ReadAsStringAsync();
HostMatchingTests.cs (5)
37var responseContent = await response.Content.ReadAsStringAsync(); 55var responseContent = await response.Content.ReadAsStringAsync(); 73var responseContent = await response.Content.ReadAsStringAsync(); 91var responseContent = await response.Content.ReadAsStringAsync(); 109var responseContent = await response.Content.ReadAsStringAsync();
MapFallbackTest.cs (3)
29var responseContent = await response.Content.ReadAsStringAsync(); 63var responseContent = await response.Content.ReadAsStringAsync(); 97var responseContent = await response.Content.ReadAsStringAsync();
MinimalFormTests.cs (5)
66var body = await response.Content.ReadAsStringAsync(); 126var body = await response.Content.ReadAsStringAsync(); 287var body = await response.Content.ReadAsStringAsync(); 334var body = await response.Content.ReadAsStringAsync(); 494var body = await response.Content.ReadAsStringAsync();
RouterSampleTest.cs (4)
41Assert.Equal($"{branch} - API Get 5", await response.Content.ReadAsStringAsync()); 55Assert.Equal($"API Get 5", await response.Content.ReadAsStringAsync()); 69Assert.Equal($"Middleware!", await response.Content.ReadAsStringAsync()); 92var body = await response.Content.ReadAsStringAsync();
WebHostBuilderExtensionsTest.cs (1)
101var actual = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (28)
DelegateTests.cs (1)
280return await response.Content.ReadAsStringAsync();
Http3Tests.cs (5)
80Assert.Equal("HTTP/1.1", await response1.Content.ReadAsStringAsync()); 119Assert.Equal("HTTP/2", await response2.Content.ReadAsStringAsync()); 150var result = await response.Content.ReadAsStringAsync(); 209var ex = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()); 235var ex = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync());
HttpsTests.cs (1)
285return await response.Content.ReadAsStringAsync();
Listener\RequestBodyTests.cs (1)
207return await response.Content.ReadAsStringAsync();
Listener\ServerOnExistingQueueTests.cs (1)
329return await response.Content.ReadAsStringAsync();
Listener\ServerTests.cs (1)
68Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
OpaqueUpgradeTests.cs (2)
43Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 71Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
RequestBodyLimitTests.cs (1)
417return await response.Content.ReadAsStringAsync();
RequestBodyTests.cs (1)
305return await response.Content.ReadAsStringAsync();
ResponseBodyTests.cs (2)
38Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 204Assert.Equal("Manually Chunked", await response.Content.ReadAsStringAsync());
ResponseHeaderTests.cs (1)
208Assert.Equal("Manually Chunked", await response.Content.ReadAsStringAsync());
ResponseTests.cs (4)
37Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 56Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 76Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 93Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
ResponseTrailersTests.cs (6)
110Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 141Assert.Equal(body, await response.Content.ReadAsStringAsync()); 166Assert.Equal(body + body, await response.Content.ReadAsStringAsync()); 192Assert.Equal(body, await response.Content.ReadAsStringAsync()); 218Assert.Equal(body, await response.Content.ReadAsStringAsync()); 260Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
ServerTests.cs (1)
651return await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
89var responseText = await response.Content.ReadAsStringAsync(); 253var responseText1 = await response1.Content.ReadAsStringAsync().DefaultTimeout(); 267var responseText2 = await response2.Content.ReadAsStringAsync().DefaultTimeout(); 324var responseText1 = await response1.Content.ReadAsStringAsync().DefaultTimeout(); 337var responseText2 = await response2.Content.ReadAsStringAsync().DefaultTimeout(); 362var responseText1 = await response1.Content.ReadAsStringAsync().DefaultTimeout(); 374var responseText2 = await response2.Content.ReadAsStringAsync().DefaultTimeout();
Microsoft.AspNetCore.Session.Tests (3)
SessionTests.cs (3)
200Assert.Equal("0", await response.Content.ReadAsStringAsync()); 260Assert.Equal("0", await response.Content.ReadAsStringAsync()); 318Assert.Equal("0", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
1480return await httpResponse.Content.ReadAsStringAsync(); 2697var authHeader = await httpResponse.Content.ReadAsStringAsync();
Microsoft.AspNetCore.SignalR.Tests (2)
EndToEndTests.cs (2)
482token = await response.Content.ReadAsStringAsync(); 656token = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.StaticAssets.Tests (5)
StaticAssetsIntegrationTests.cs (5)
67Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync()); 117Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync()); 169Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync()); 338Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync()); 391Assert.Equal("Hello, World! Modified", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
FallbackStaticFileTest.cs (2)
60var responseText = await response.Content.ReadAsStringAsync(); 109var responseText = await response.Content.ReadAsStringAsync();
StaticFileMiddlewareTests.cs (1)
86Assert.Equal("Hi from endpoint.", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.StaticFiles.Tests (26)
DefaultFilesMiddlewareTests.cs (4)
76Assert.Equal(requestUrl, await response.Content.ReadAsStringAsync()); // Should not be modified 119Assert.Equal("/SubFolder/", await response.Content.ReadAsStringAsync()); // Should not be modified 158var responseContent = await response.Content.ReadAsStringAsync(); 226Assert.Equal(requestUrlWithSlash + "default.html", await response.Content.ReadAsStringAsync()); // Should be modified and be valid path to file
DirectoryBrowserMiddlewareTests.cs (1)
134Assert.Equal("Hi from endpoint.", await response.Content.ReadAsStringAsync());
RangeHeaderTests.cs (20)
30Assert.Equal("0123456789a", await resp.Content.ReadAsStringAsync()); 53Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 72Assert.Equal("0123456789a", await resp.Content.ReadAsStringAsync()); 89Assert.Equal("0123456789a", await resp.Content.ReadAsStringAsync()); 125Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 142Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync()); 159Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 178Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync()); 197Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 216Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync()); 224Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync()); 243Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 251Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 277Assert.Equal(expectedData, await resp.Content.ReadAsStringAsync()); 298Assert.Equal(expectedData, await resp.Content.ReadAsStringAsync()); 332Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 385Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync()); 407Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 429Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync()); 447Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
StaticFileMiddlewareTests.cs (1)
409var responseContent = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.TestHost.Tests (13)
ClientHandlerTests.cs (3)
418Assert.Equal("BodyStarted,BodyFinished", await response.Content.ReadAsStringAsync()); 437Assert.Equal("BodyFinished", await response.Content.ReadAsStringAsync()); 536var ex = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync());
TestClientTests.cs (5)
102Assert.Equal("Hello world PUT Response", await response.Content.ReadAsStringAsync().DefaultTimeout()); 120Assert.Equal("Hello world POST Response", await response.Content.ReadAsStringAsync().DefaultTimeout()); 956var actual = await message.Content.ReadAsStringAsync(); 983var actual = await message.Content.ReadAsStringAsync(); 1010var actual = await message.Content.ReadAsStringAsync();
TestServerTests.cs (5)
227Assert.Equal("Hello World", await response.Content.ReadAsStringAsync()); 656Assert.Equal("Response", await result.Content.ReadAsStringAsync()); 704Assert.Equal("FoundService:True", await result.Content.ReadAsStringAsync()); 717Assert.Equal("FoundFoo:False", await result.Content.ReadAsStringAsync()); 794var responseBody = await response.Content.ReadAsStringAsync();
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
1607Assert.Equal("new", await oldResult.Content.ReadAsStringAsync()); 2041Assert.Contains("BOOM", await response.Content.ReadAsStringAsync()); 2149var responseBody = await response.Content.ReadAsStringAsync(); 2174var responseBody = await response.Content.ReadAsStringAsync();
Microsoft.DotNet.Build.Tasks.Feed (2)
src\CreateAzureDevOpsFeed.cs (1)
174throw new Exception($"Feed '{baseFeedName}' was not created. Request failed with status code {createFeedResponse.StatusCode}. Exception: {await createFeedResponse.Content.ReadAsStringAsync()}");
src\PublishArtifactsInManifestBase.cs (1)
910string responseBody = await response.Content.ReadAsStringAsync();
Microsoft.DotNet.Deployment.Tasks.Links (8)
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
39AzureDevOpsCommit commitResponse = JsonConvert.DeserializeObject<AzureDevOpsCommit>(await response.Content.ReadAsStringAsync());
Microsoft.DotNet.Helix.Sdk (5)
AzureDevOpsTask.cs (2)
132var message = $"Request to {req.RequestUri} returned failed status {statusCodeValue} {res.ReasonPhrase}\n\n{(res.Content != null ? await res.Content.ReadAsStringAsync() : "")}"; 154var responseContent = await res.Content.ReadAsStringAsync();
FindDotNetCliPackage.cs (3)
215return (await genericResponse.Content.ReadAsStringAsync()).Trim(); 225return (await specificResponse.Content.ReadAsStringAsync()).Trim(); 339string latestVersionContent = await versionResponse.Content.ReadAsStringAsync();
Microsoft.DotNet.VersionTools (11)
Automation\GitHubApi\GitHubClient.cs (4)
238await response.Content.ReadAsStringAsync(), 443await response.Content.ReadAsStringAsync(), 460string failureContent = await response.Content.ReadAsStringAsync(); 472JObject responseContent = JObject.Parse(await response.Content.ReadAsStringAsync());
Automation\VstsApi\VstsAdapterClient.cs (6)
202JObject queryResponse = JObject.Parse(await response.Content.ReadAsStringAsync()); 286JObject o = JObject.Parse(await response.Content.ReadAsStringAsync()); 318JObject responseRefs = JObject.Parse(await response.Content.ReadAsStringAsync()); 420await response.Content.ReadAsStringAsync(), 428string failureContent = await response.Content.ReadAsStringAsync(); 440JObject responseContent = JObject.Parse(await response.Content.ReadAsStringAsync());
BuildInfo.cs (1)
73releaseVersion = (await response.Content.ReadAsStringAsync()).Trim();
Negotiate.Client (12)
Controllers\AuthTestController.cs (12)
35var body = await result.Content.ReadAsStringAsync(); 56var body = await result.Content.ReadAsStringAsync(); 84var body = await result.Content.ReadAsStringAsync(); 107var body = await result.Content.ReadAsStringAsync(); 118body = await result.Content.ReadAsStringAsync(); 140var body = await result.Content.ReadAsStringAsync(); 151body = await result.Content.ReadAsStringAsync(); 173var body = await result.Content.ReadAsStringAsync(); 184body = await result.Content.ReadAsStringAsync(); 204var body = await result.Content.ReadAsStringAsync(); 230var body = await result.Content.ReadAsStringAsync(); 241body = await result.Content.ReadAsStringAsync();
OpenIdConnectSample (1)
Startup.cs (1)
264using (var payload = JsonDocument.Parse(await tokenResponse.Content.ReadAsStringAsync()))
ServerComparison.FunctionalTests (16)
HelloWorldTest.cs (2)
69var responseText = await response.Content.ReadAsStringAsync(); 157var body = await response.Content.ReadAsStringAsync();
NtlmAuthenticationTest.cs (4)
56var responseText = await response.Content.ReadAsStringAsync(); 63responseText = await response.Content.ReadAsStringAsync(); 68responseText = await response.Content.ReadAsStringAsync(); 91responseText = await response.Content.ReadAsStringAsync();
ResponseCompressionTests.cs (3)
147var responseText = await response.Content.ReadAsStringAsync(); 170var responseText = await response.Content.ReadAsStringAsync(); 202var responseText = await response.Content.ReadAsStringAsync();
ResponseTests.cs (7)
109var responseText = await response.Content.ReadAsStringAsync(); 135var responseText = await response.Content.ReadAsStringAsync(); 155var responseText = await response.Content.ReadAsStringAsync(); 180var responseText = await response.Content.ReadAsStringAsync(); 205var responseText = await response.Content.ReadAsStringAsync(); 230var responseText = await response.Content.ReadAsStringAsync(); 250var responseText = await response.Content.ReadAsStringAsync();
SocialSample (3)
Startup.cs (3)
144using (var user = JsonDocument.Parse(await response.Content.ReadAsStringAsync())) 205using (var user = JsonDocument.Parse(await response.Content.ReadAsStringAsync())) 333using (var payload = JsonDocument.Parse(await refreshResponse.Content.ReadAsStringAsync()))
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
1126var connectionFacts = await response.Content.ReadAsStringAsync();
Stress.ApiService (1)
Program.cs (1)
92await response.Content.ReadAsStringAsync();
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
150string content = request.Content == null ? string.Empty : await request.Content.ReadAsStringAsync().ConfigureAwait(false);
Templates.Tests (2)
IdentityUIPackageTest.cs (2)
133Assert.Contains(versionValidator, await response.Content.ReadAsStringAsync()); 145Assert.Contains(versionValidator, await response.Content.ReadAsStringAsync());