1327 references to ReadAsStringAsync
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)
44Assert.Equal("Request Handled", await response.Content.ReadAsStringAsync()); 141var content = await response.Content.ReadAsStringAsync(); 203var content = await response.Content.ReadAsStringAsync(); 242var content = await response.Content.ReadAsStringAsync(); 286var content = await response.Content.ReadAsStringAsync(); 300content = await response.Content.ReadAsStringAsync(); 306content = await response.Content.ReadAsStringAsync(); 365var content = await response.Content.ReadAsStringAsync(); 487var 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(); 1063var responseText = await response.Content.ReadAsStringAsync(); 1078var responseString = await response.Content.ReadAsStringAsync(); 1097var responseString = await response.Content.ReadAsStringAsync(); 1120var responseString = await response.Content.ReadAsStringAsync(); 1143var responseString = await response.Content.ReadAsStringAsync(); 1487Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1582Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1597var 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(); 1063var responseText = await response.Content.ReadAsStringAsync(); 1078var responseString = await response.Content.ReadAsStringAsync(); 1097var responseString = await response.Content.ReadAsStringAsync(); 1120var responseString = await response.Content.ReadAsStringAsync(); 1143var responseString = await response.Content.ReadAsStringAsync(); 1487Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1582Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1597var 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(); 1063var responseText = await response.Content.ReadAsStringAsync(); 1078var responseString = await response.Content.ReadAsStringAsync(); 1097var responseString = await response.Content.ReadAsStringAsync(); 1120var responseString = await response.Content.ReadAsStringAsync(); 1143var responseString = await response.Content.ReadAsStringAsync(); 1487Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1582Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1597var 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(); 1063var responseText = await response.Content.ReadAsStringAsync(); 1078var responseString = await response.Content.ReadAsStringAsync(); 1097var responseString = await response.Content.ReadAsStringAsync(); 1120var responseString = await response.Content.ReadAsStringAsync(); 1143var responseString = await response.Content.ReadAsStringAsync(); 1487Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync()); 1582Assert.Contains(error, await response.Content.ReadAsStringAsync()); 1597var responseText = await response.Content.ReadAsStringAsync();
UpgradeFeatureDetectionTests.cs (1)
75var responseText = await response.Content.ReadAsStringAsync();
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
538return 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)
152Assert.Equal("An HTTP/1.x request was sent to an HTTP/2 only endpoint.", await responseMessage.Content.ReadAsStringAsync());
Http3\Http3RequestTests.cs (3)
155Assert.Equal("hello, world", await responseMessage.Content.ReadAsStringAsync()); 438var responseText = await response.Content.ReadAsStringAsync().DefaultTimeout(); 738var 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 (86)
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)
118Assert.Equal(tokenText, await response.Response.Content.ReadAsStringAsync()); 816Assert.Equal("You Shall Not Pass", await response.Response.Content.ReadAsStringAsync()); 865Assert.Equal("You Shall Not Pass", await response.Content.ReadAsStringAsync()); 905var responseBody = await response.Response.Content.ReadAsStringAsync(); 948var responseBody = await response.Response.Content.ReadAsStringAsync(); 1294transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
MicrosoftAccountTests.cs (1)
299var body = req.Content.ReadAsStringAsync().Result;
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
164var body = await res.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()); 697Assert.Equal("separate pipeline", await response.Content.ReadAsStringAsync()); 748Assert.Equal("Handled", await response.Content.ReadAsStringAsync()); 802Assert.Equal("Handled", await response.Content.ReadAsStringAsync()); 854Assert.Equal("Handled", await response.Content.ReadAsStringAsync()); 912Assert.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.Grpc.JsonTranscoding.IntegrationTests (3)
UnaryTests.cs (3)
184var responseText = await response.Content.ReadAsStringAsync(); 217var responseText = await response.Content.ReadAsStringAsync(); 246var 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 (650)
AntiforgeryTests.cs (5)
46var responseBody = await getResponse.Content.ReadAsStringAsync(); 71Assert.Equal("OK", await response.Content.ReadAsStringAsync()); 98var responseBody = await getResponse.Content.ReadAsStringAsync(); 121Assert.Equal("OK", await response.Content.ReadAsStringAsync()); 129var responseBody = await getResponse.Content.ReadAsStringAsync();
ApiBehaviorTest.cs (13)
52await response.Content.ReadAsStringAsync(), 117var content = await response.Content.ReadAsStringAsync(); 145var result = JsonConvert.DeserializeObject<Contact>(await response.Content.ReadAsStringAsync()); 166var result = JsonConvert.DeserializeObject<ContactRequest>(await response.Content.ReadAsStringAsync()); 182var result = JsonConvert.DeserializeObject<Contact>(await response.Content.ReadAsStringAsync()); 199var result = JsonConvert.DeserializeObject<Contact>(await response.Content.ReadAsStringAsync()); 258var result = await response.Content.ReadAsStringAsync(); 273var result = await response.Content.ReadAsStringAsync(); 287var content = await response.Content.ReadAsStringAsync(); 316var content = await response.Content.ReadAsStringAsync(); 334var content = await response.Content.ReadAsStringAsync(); 347var content = await response.Content.ReadAsStringAsync(); 450var content = await response.Content.ReadAsStringAsync();
ApiExplorerTest.cs (55)
29var body = await response.Content.ReadAsStringAsync(); 42var body = await response.Content.ReadAsStringAsync(); 55var body = await response.Content.ReadAsStringAsync(); 68var body = await response.Content.ReadAsStringAsync(); 81var body = await response.Content.ReadAsStringAsync(); 95var body = await response.Content.ReadAsStringAsync(); 109var body = await response.Content.ReadAsStringAsync(); 123var body = await response.Content.ReadAsStringAsync(); 137var body = await response.Content.ReadAsStringAsync(); 151var body = await response.Content.ReadAsStringAsync(); 165var body = await response.Content.ReadAsStringAsync(); 188var body = await response.Content.ReadAsStringAsync(); 211var body = await response.Content.ReadAsStringAsync(); 233var body = await response.Content.ReadAsStringAsync(); 262var body = await response.Content.ReadAsStringAsync(); 298var body = await response.Content.ReadAsStringAsync(); 333var body = await response.Content.ReadAsStringAsync(); 357var body = await response.Content.ReadAsStringAsync(); 375var body = await response.Content.ReadAsStringAsync(); 389var body = await response.Content.ReadAsStringAsync(); 410var body = await response.Content.ReadAsStringAsync(); 433var body = await response.Content.ReadAsStringAsync(); 452var body = await response.Content.ReadAsStringAsync(); 472var body = await response.Content.ReadAsStringAsync(); 496var body = await response.Content.ReadAsStringAsync(); 516var body = await response.Content.ReadAsStringAsync(); 539var body = await response.Content.ReadAsStringAsync(); 561var body = await response.Content.ReadAsStringAsync(); 582var body = await response.Content.ReadAsStringAsync(); 606var body = await response.Content.ReadAsStringAsync(); 638var body = await response.Content.ReadAsStringAsync(); 670var body = await response.Content.ReadAsStringAsync(); 702var body = await response.Content.ReadAsStringAsync(); 732var body = await response.Content.ReadAsStringAsync(); 769var body = await response.Content.ReadAsStringAsync(); 804var body = await response.Content.ReadAsStringAsync(); 834var body = await response.Content.ReadAsStringAsync(); 860var body = await response.Content.ReadAsStringAsync(); 884var body = await response.Content.ReadAsStringAsync(); 913var body = await response.Content.ReadAsStringAsync(); 939var body = await response.Content.ReadAsStringAsync(); 957var body = await response.Content.ReadAsStringAsync(); 982var body = await response.Content.ReadAsStringAsync(); 1006var body = await response.Content.ReadAsStringAsync(); 1030var body = await response.Content.ReadAsStringAsync(); 1054var body = await response.Content.ReadAsStringAsync(); 1098var body = await response.Content.ReadAsStringAsync(); 1130var body = await response.Content.ReadAsStringAsync(); 1317var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1348var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1383var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1418var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1458var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1499var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); 1528var responseBody = await response.EnsureSuccessStatusCode().Content.ReadAsStringAsync();
ApplicationModelTest.cs (10)
27var body = await response.Content.ReadAsStringAsync(); 40var body = await response.Content.ReadAsStringAsync(); 53var body = await response.Content.ReadAsStringAsync(); 66var body = await response.Content.ReadAsStringAsync(); 79var body = await response.Content.ReadAsStringAsync(); 92var body = await response.Content.ReadAsStringAsync(); 105var body = await response.Content.ReadAsStringAsync(); 123var body = await response.Content.ReadAsStringAsync(); 174var content = await response.Content.ReadAsStringAsync(); 192var body = await response.Content.ReadAsStringAsync();
AsyncActionsTests.cs (24)
23var responseBody = await response.Content.ReadAsStringAsync(); 35var responseBody = await response.Content.ReadAsStringAsync(); 47var responseBody = await response.Content.ReadAsStringAsync(); 58var responseBody = await response.Content.ReadAsStringAsync(); 70var responseBody = await response.Content.ReadAsStringAsync(); 81var responseBody = await response.Content.ReadAsStringAsync(); 93var responseBody = await response.Content.ReadAsStringAsync(); 104var responseBody = await response.Content.ReadAsStringAsync(); 116var responseBody = await response.Content.ReadAsStringAsync(); 127var responseBody = await response.Content.ReadAsStringAsync(); 139var responseBody = await response.Content.ReadAsStringAsync(); 150var responseBody = await response.Content.ReadAsStringAsync(); 162var responseBody = await response.Content.ReadAsStringAsync(); 173var responseBody = await response.Content.ReadAsStringAsync(); 185var responseBody = await response.Content.ReadAsStringAsync(); 196var responseBody = await response.Content.ReadAsStringAsync(); 208var responseBody = await response.Content.ReadAsStringAsync(); 219var responseBody = await response.Content.ReadAsStringAsync(); 231var responseBody = await response.Content.ReadAsStringAsync(); 242var responseBody = await response.Content.ReadAsStringAsync(); 254var responseBody = await response.Content.ReadAsStringAsync(); 265var responseBody = await response.Content.ReadAsStringAsync(); 277var responseBody = await response.Content.ReadAsStringAsync(); 311var content = await response.Content.ReadAsStringAsync();
AsyncEnumerableTestBase.cs (3)
35var content = await response.Content.ReadAsStringAsync(); 53var content = await response.Content.ReadAsStringAsync(); 72var content = await response.Content.ReadAsStringAsync();
AuthMiddlewareAndFilterTestBase.cs (1)
277return await response.Content.ReadAsStringAsync();
BasicTests.cs (19)
41var responseContent = await response.Content.ReadAsStringAsync(); 61var responseContent = await response.Content.ReadAsStringAsync(); 85var responseContent = await response.Content.ReadAsStringAsync(); 105var responseContent = await response.Content.ReadAsStringAsync(); 124var responseContent = await response.Content.ReadAsStringAsync(); 137var responseContent = await response.Content.ReadAsStringAsync(); 155Assert.Empty(await response.Content.ReadAsStringAsync()); 169var responseContent = await result.Content.ReadAsStringAsync(); 237var actualBody = await response.Content.ReadAsStringAsync(); 260var actualBody = await response.Content.ReadAsStringAsync(); 283var actualBody = await response.Content.ReadAsStringAsync(); 331var responseData = await response.Content.ReadAsStringAsync(); 343var responseData = await response.Content.ReadAsStringAsync(); 529var content = await response.Content.ReadAsStringAsync(); 552var content = await response.Content.ReadAsStringAsync(); 574var content = await response.Content.ReadAsStringAsync(); 594var content = await response.Content.ReadAsStringAsync(); 606var content = await response.Content.ReadAsStringAsync(); 644var content = await response.Content.ReadAsStringAsync();
ComponentRenderingFunctionalTests.cs (5)
34var content = await response.Content.ReadAsStringAsync(); 51var content = await response.Content.ReadAsStringAsync(); 82var content = await response.Content.ReadAsStringAsync(); 98var content = await response.Content.ReadAsStringAsync(); 160var content = await response.Content.ReadAsStringAsync();
ConsumesAttributeEndpointRoutingTests.cs (1)
25var body = await response.Content.ReadAsStringAsync();
ConsumesAttributeTests.cs (1)
25var body = await response.Content.ReadAsStringAsync();
ConsumesAttributeTestsBase.cs (7)
40var body = await response.Content.ReadAsStringAsync(); 57var body = await response.Content.ReadAsStringAsync(); 93var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync()); 115var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync()); 139var responseString = await response.Content.ReadAsStringAsync(); 159var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync()); 182var product = JsonConvert.DeserializeObject<Product>(await response.Content.ReadAsStringAsync());
ContentNegotiationTest.cs (19)
38var body = await response.Content.ReadAsStringAsync(); 55var body = await response.Content.ReadAsStringAsync(); 71var body = await response.Content.ReadAsStringAsync(); 125var actual = await response.Content.ReadAsStringAsync(); 150var actual = await response.Content.ReadAsStringAsync(); 168var actual = await response.Content.ReadAsStringAsync(); 213var actualResponseBody = await response.Content.ReadAsStringAsync(); 231var body = await response.Content.ReadAsStringAsync(); 249var body = await response.Content.ReadAsStringAsync(); 266var body = await response.Content.ReadAsStringAsync(); 283var body = await response.Content.ReadAsStringAsync(); 301var body = await response.Content.ReadAsStringAsync(); 317var body = await response.Content.ReadAsStringAsync(); 342var body = await response.Content.ReadAsStringAsync(); 364var actualBody = await response.Content.ReadAsStringAsync(); 382var actualBody = await response.Content.ReadAsStringAsync(); 468var body = await response.Content.ReadAsStringAsync(); 485var body = await response.Content.ReadAsStringAsync(); 524var body = await response.Content.ReadAsStringAsync();
ControllerEndpointFiltersTest.cs (1)
60var content = await response.Content.ReadAsStringAsync();
ControllerFromServicesTests.cs (3)
28var responseText = await response.Content.ReadAsStringAsync(); 73Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 89Assert.Equal(expected, await response.Content.ReadAsStringAsync());
CorsTestsBase.cs (13)
40var content = await response.Content.ReadAsStringAsync(); 59var content = await response.Content.ReadAsStringAsync(); 77var content = await response.Content.ReadAsStringAsync(); 134var content = await response.Content.ReadAsStringAsync(); 166var content = await response.Content.ReadAsStringAsync(); 202var content = await response.Content.ReadAsStringAsync(); 224var content = await response.Content.ReadAsStringAsync(); 248var content = await response.Content.ReadAsStringAsync(); 277var content = await response.Content.ReadAsStringAsync(); 309var content = await response.Content.ReadAsStringAsync(); 344var content = await response.Content.ReadAsStringAsync(); 372var content = await response.Content.ReadAsStringAsync(); 395var content = await response.Content.ReadAsStringAsync();
CustomValueProviderTest.cs (4)
35var content = await response.Content.ReadAsStringAsync(); 52var content = await response.Content.ReadAsStringAsync(); 69var content = await response.Content.ReadAsStringAsync(); 86var content = await response.Content.ReadAsStringAsync();
DataAnnotationTests.cs (1)
31var content = await response.Content.ReadAsStringAsync();
DoNotRespectBrowserAcceptHeaderTests.cs (4)
40var responseData = await response.Content.ReadAsStringAsync(); 68var responseData = await response.Content.ReadAsStringAsync(); 100var responseData = await response.Content.ReadAsStringAsync(); 128var responseData = await response.Content.ReadAsStringAsync();
ErrorPageTests.cs (6)
70var content = await response.Content.ReadAsStringAsync(); 105var content = await response.Content.ReadAsStringAsync(); 126var content = await response.Content.ReadAsStringAsync(); 146var content = await response.Content.ReadAsStringAsync(); 164var content = await response.Content.ReadAsStringAsync(); 179var content = await response.Content.ReadAsStringAsync();
FileResultTests.cs (39)
34var body = await response.Content.ReadAsStringAsync(); 56var body = await response.Content.ReadAsStringAsync(); 78var body = await response.Content.ReadAsStringAsync(); 99var body = await response.Content.ReadAsStringAsync(); 120var body = await response.Content.ReadAsStringAsync(); 142var body = await response.Content.ReadAsStringAsync(); 163var body = await response.Content.ReadAsStringAsync(); 181var body = await response.Content.ReadAsStringAsync(); 206var body = await response.Content.ReadAsStringAsync(); 225var body = await response.Content.ReadAsStringAsync(); 245var body = await response.Content.ReadAsStringAsync(); 279var body = await response.Content.ReadAsStringAsync(); 304var body = await response.Content.ReadAsStringAsync(); 321var body = await response.Content.ReadAsStringAsync(); 342var body = await response.Content.ReadAsStringAsync(); 365var body = await response.Content.ReadAsStringAsync(); 380var body = await response.Content.ReadAsStringAsync(); 402var body = await response.Content.ReadAsStringAsync(); 427var body = await response.Content.ReadAsStringAsync(); 441var body = await response.Content.ReadAsStringAsync(); 463var body = await response.Content.ReadAsStringAsync(); 498var body = await response.Content.ReadAsStringAsync(); 522var body = await response.Content.ReadAsStringAsync(); 539var body = await response.Content.ReadAsStringAsync(); 566var body = await response.Content.ReadAsStringAsync(); 581var body = await response.Content.ReadAsStringAsync(); 606var body = await response.Content.ReadAsStringAsync(); 631var body = await response.Content.ReadAsStringAsync(); 645var body = await response.Content.ReadAsStringAsync(); 670var body = await response.Content.ReadAsStringAsync(); 704var body = await response.Content.ReadAsStringAsync(); 731var body = await response.Content.ReadAsStringAsync(); 757var body = await response.Content.ReadAsStringAsync(); 781var body = await response.Content.ReadAsStringAsync(); 800var body = await response.Content.ReadAsStringAsync(); 823var body = await response.Content.ReadAsStringAsync(); 847var body = await response.Content.ReadAsStringAsync(); 871var body = await response.Content.ReadAsStringAsync(); 908var body = await response.Content.ReadAsStringAsync();
FiltersTest.cs (5)
28Assert.Equal("Hello World!", await response.Content.ReadAsStringAsync()); 39Assert.Equal("Hello World!", await response.Content.ReadAsStringAsync()); 67await response.Content.ReadAsStringAsync()); 85Assert.Equal("Can't process this!", await response.Content.ReadAsStringAsync()); 112Assert.Equal("Service filter content", await response.Content.ReadAsStringAsync());
GlobalAuthorizationFilterTestBase.cs (1)
35var body = await response.Content.ReadAsStringAsync();
HtmlGenerationTest.cs (12)
105var responseContent = await response.Content.ReadAsStringAsync(); 222var responseContent = await response.Content.ReadAsStringAsync(); 262var responseContent = await response.Content.ReadAsStringAsync(); 301var responseContent = await response.Content.ReadAsStringAsync(); 332var responseContent = await response.Content.ReadAsStringAsync(); 426var response1 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 428var response2 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 442var response3 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 444var response4 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 457var response5 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 459var response6 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 501var 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)
40Assert.Equal(sampleInputInt.ToString(CultureInfo.InvariantCulture), await response.Content.ReadAsStringAsync()); 53var responseBody = await response.Content.ReadAsStringAsync(); 83var result = JsonConvert.DeserializeObject<DerivedModel>(await response.Content.ReadAsStringAsync()); 95var result = JObject.Parse(await response.Content.ReadAsStringAsync()); 115var result = JsonConvert.DeserializeObject<DerivedModel>(await response.Content.ReadAsStringAsync()); 127var result = JObject.Parse(await response.Content.ReadAsStringAsync()); 147var result = JsonConvert.DeserializeObject<DerivedModel>(await response.Content.ReadAsStringAsync()); 159var result = JObject.Parse(await response.Content.ReadAsStringAsync());
InputObjectValidationTests.cs (13)
69await response.Content.ReadAsStringAsync()); 97await response.Content.ReadAsStringAsync()); 112await response.Content.ReadAsStringAsync()); 132var responseContent = await response.Content.ReadAsStringAsync(); 160var responseContent = await response.Content.ReadAsStringAsync(); 182Assert.Equal("xyz", await response.Content.ReadAsStringAsync()); 202var responseContent = await response.Content.ReadAsStringAsync(); 222var responseContent = await response.Content.ReadAsStringAsync(); 243var responseContent = await response.Content.ReadAsStringAsync(); 264var content = await response.Content.ReadAsStringAsync(); 285var responseContent = await response.Content.ReadAsStringAsync(); 314var responseContent = await response.Content.ReadAsStringAsync(); 346var responseContent = await response.Content.ReadAsStringAsync();
InputParentValidationTests.cs (2)
46var responseContent = await response.Content.ReadAsStringAsync(); 65var responseContent = await response.Content.ReadAsStringAsync();
InputValidationTests.cs (2)
39var responseText = await response.Content.ReadAsStringAsync(); 74var responseText = await response.Content.ReadAsStringAsync();
JsonInputFormatterTestBase.cs (5)
42Assert.Equal(sampleInputInt.ToString(CultureInfo.InvariantCulture), await response.Content.ReadAsStringAsync()); 58var responseBody = await response.Content.ReadAsStringAsync(); 76var responseBody = await response.Content.ReadAsStringAsync(); 92var responseBody = await response.Content.ReadAsStringAsync(); 217var responseBody = await response.Content.ReadAsStringAsync();
JsonOutputFormatterTestBase.cs (11)
51var actualContent = await response.Content.ReadAsStringAsync(); 75Assert.Equal("2", await response.Content.ReadAsStringAsync()); 86Assert.Equal("\"Hello world\"", await response.Content.ReadAsStringAsync()); 97Assert.Equal("\"Hello Mr. 🦊\"", await response.Content.ReadAsStringAsync()); 108Assert.Equal("\"Une bête de cirque\"", await response.Content.ReadAsStringAsync()); 122Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 136Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 150Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 165Assert.Equal(expected, await response.Content.ReadAsStringAsync()); 179var obj = JObject.Parse(await response.Content.ReadAsStringAsync()); 197Assert.Equal(expected, await response.Content.ReadAsStringAsync());
JsonPatchInputFormatterTest.cs (5)
33var body = await response.Content.ReadAsStringAsync(); 53var body = await response.Content.ReadAsStringAsync(); 73var body = await response.Content.ReadAsStringAsync(); 94var body = await response.Content.ReadAsStringAsync(); 115var body = await response.Content.ReadAsStringAsync();
JsonResultWithNewtonsoftJsonTest.cs (6)
35var content = await response.Content.ReadAsStringAsync(); 57var content = await response.Content.ReadAsStringAsync(); 75var content = await response.Content.ReadAsStringAsync(); 93var content = await response.Content.ReadAsStringAsync(); 110var content = await response.Content.ReadAsStringAsync(); 126var content = await response.Content.ReadAsStringAsync();
JsonResultWithSystemTextJsonTest.cs (6)
35var content = await response.Content.ReadAsStringAsync(); 57var content = await response.Content.ReadAsStringAsync(); 75var content = await response.Content.ReadAsStringAsync(); 93var content = await response.Content.ReadAsStringAsync(); 110var content = await response.Content.ReadAsStringAsync(); 126var content = await response.Content.ReadAsStringAsync();
KeyedServicesTests.cs (5)
31Assert.Equal("OK", await okResponse.Content.ReadAsStringAsync()); 32Assert.Equal("NOT OK", await notokResponse.Content.ReadAsStringAsync()); 46Assert.Equal("OK,NOT OK", await response.Content.ReadAsStringAsync()); 60Assert.Equal("DEFAULT", await response.Content.ReadAsStringAsync()); 74Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
LinkGenerationTests.cs (2)
49var responseContent = await response.Content.ReadAsStringAsync(); 71var responseContent = await response.Content.ReadAsStringAsync();
LinkGeneratorTest.cs (18)
29var responseContent = await response.Content.ReadAsStringAsync(); 41var responseContent = await response.Content.ReadAsStringAsync(); 53var responseContent = await response.Content.ReadAsStringAsync(); 65var responseContent = await response.Content.ReadAsStringAsync(); 77var responseContent = await response.Content.ReadAsStringAsync(); 89var responseContent = await response.Content.ReadAsStringAsync(); 103var responseContent = await response.Content.ReadAsStringAsync(); 115var responseContent = await response.Content.ReadAsStringAsync(); 127var responseContent = await response.Content.ReadAsStringAsync(); 139var responseContent = await response.Content.ReadAsStringAsync(); 151var responseContent = await response.Content.ReadAsStringAsync(); 163var responseContent = await response.Content.ReadAsStringAsync(); 175var responseContent = await response.Content.ReadAsStringAsync(); 187var responseContent = await response.Content.ReadAsStringAsync(); 199var responseContent = await response.Content.ReadAsStringAsync(); 211var responseContent = await response.Content.ReadAsStringAsync(); 223var responseContent = await response.Content.ReadAsStringAsync(); 235var responseContent = await response.Content.ReadAsStringAsync();
NewtonsoftJsonInputFormatterTest.cs (1)
25var responseBody = await response.Content.ReadAsStringAsync();
NewtonsoftJsonOutputFormatterTest.cs (1)
40var actualBody = await response.Content.ReadAsStringAsync();
NonNullableReferenceTypesTest.cs (4)
30var content = await response.Content.ReadAsStringAsync(); 54content = await response.Content.ReadAsStringAsync(); 72var content = await response.Content.ReadAsStringAsync(); 108var content = await response.Content.ReadAsStringAsync();
OutputFormatterTest.cs (4)
35var body = await response.Content.ReadAsStringAsync(); 64var body = await response.Content.ReadAsStringAsync(); 82var body = await response.Content.ReadAsStringAsync(); 102var body = await response.Content.ReadAsStringAsync();
RazorBuildTest.cs (4)
40var responseBody = await response.Content.ReadAsStringAsync(); 56var responseBody = await response.Content.ReadAsStringAsync(); 65var responseBody = await response.Content.ReadAsStringAsync(); 78var responseBody = await response.Content.ReadAsStringAsync();
RazorPageModelTest.cs (7)
43var content = await response.Content.ReadAsStringAsync(); 68var content = await response.Content.ReadAsStringAsync(); 93var content = await response.Content.ReadAsStringAsync(); 119var content = await response.Content.ReadAsStringAsync(); 144var content = await response.Content.ReadAsStringAsync(); 169var content = await response.Content.ReadAsStringAsync(); 179var getResponseBody = await getResponse.Content.ReadAsStringAsync();
RazorPagesTest.cs (45)
41var responseContent = await response.Content.ReadAsStringAsync(); 86var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 99var content = await response.Content.ReadAsStringAsync(); 118var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 130var content = await response.Content.ReadAsStringAsync(); 199var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 212var content = await response.Content.ReadAsStringAsync(); 231var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 243var content = await response.Content.ReadAsStringAsync(); 282var content = await routeResponse.Content.ReadAsStringAsync(); 296var content = await response.Content.ReadAsStringAsync(); 312var content = await response.Content.ReadAsStringAsync(); 342Assert.Equal("Parameter cannot be null.", await response.Content.ReadAsStringAsync()); 359var content = await response.Content.ReadAsStringAsync(); 375var content = await response.Content.ReadAsStringAsync(); 391var content = await response.Content.ReadAsStringAsync(); 401var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 415var content = await response.Content.ReadAsStringAsync(); 434var content = await response.Content.ReadAsStringAsync(); 463var content = await response.Content.ReadAsStringAsync(); 479var content = await response.Content.ReadAsStringAsync(); 504var content = await response.Content.ReadAsStringAsync(); 529var content = await response.Content.ReadAsStringAsync(); 553var content = await response.Content.ReadAsStringAsync(); 564var getResponseBody = await getResponse.Content.ReadAsStringAsync(); 578var content = await response.Content.ReadAsStringAsync(); 591content = await response.Content.ReadAsStringAsync(); 622var content = await response.Content.ReadAsStringAsync(); 675var content = await response.Content.ReadAsStringAsync(); 703var content = await response.Content.ReadAsStringAsync(); 730var content = await response.Content.ReadAsStringAsync(); 761var content = await response.Content.ReadAsStringAsync(); 790var content = await response.Content.ReadAsStringAsync(); 815var result = JObject.Parse(await response.Content.ReadAsStringAsync()); 846var content = await response.Content.ReadAsStringAsync(); 870var content = await response.Content.ReadAsStringAsync(); 919var content = await response.Content.ReadAsStringAsync(); 1244Assert.Equal(expected, (await response.Content.ReadAsStringAsync()).Trim()); 1291var responseContent = await response.Content.ReadAsStringAsync(); 1306var content = await response.Content.ReadAsStringAsync(); 1332var responseContent = await response.Content.ReadAsStringAsync(); 1452var content = await response.Content.ReadAsStringAsync(); 1468var content = await response.Content.ReadAsStringAsync(); 1484var content = await response.Content.ReadAsStringAsync(); 1492var getResponseBody = await getResponse.Content.ReadAsStringAsync();
RazorPagesWithBasePathTest.cs (12)
38var content = await response.Content.ReadAsStringAsync(); 51var content = await response.Content.ReadAsStringAsync(); 64var content = await response.Content.ReadAsStringAsync(); 77var content = await response.Content.ReadAsStringAsync(); 90var content = await response.Content.ReadAsStringAsync(); 408var content = await response.Content.ReadAsStringAsync(); 417var token = AntiforgeryTestHelper.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), ""); 437var content = await response.Content.ReadAsStringAsync(); 446var token = AntiforgeryTestHelper.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), ""); 474var token = AntiforgeryTestHelper.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), ""); 494var responseText = await response.Content.ReadAsStringAsync(); 746var responseBody = await response.Content.ReadAsStringAsync();
RazorPagesWithEndpointRoutingTest.cs (1)
38var content = await response.Content.ReadAsStringAsync();
RazorViewLocationSpecificationTest.cs (1)
103var content = await (await Client.GetAsync(path)).Content.ReadAsStringAsync();
RemoteAttributeValidationTest.cs (3)
41var responseContent = await response.Content.ReadAsStringAsync(); 65var responseContent = await response.Content.ReadAsStringAsync(); 94var responseContent = await response.Content.ReadAsStringAsync();
RequestFormLimitsTest.cs (3)
63var result = await response.Content.ReadAsStringAsync(); 89var result = await response.Content.ReadAsStringAsync(); 112var result = await response.Content.ReadAsStringAsync();
RequestServicesEndpointRoutingTest.cs (1)
25var body = await response.Content.ReadAsStringAsync();
RequestServicesTest.cs (1)
25var body = await response.Content.ReadAsStringAsync();
RequestServicesTestBase.cs (3)
49var body = (await response.Content.ReadAsStringAsync()).Trim(); 69var body = (await response.Content.ReadAsStringAsync()).Trim(); 89var body1 = (await response1.Content.ReadAsStringAsync()).Trim();
RequestSizeLimitTest.cs (2)
40var result = await response.Content.ReadAsStringAsync(); 79var actual = await response.Content.ReadAsStringAsync();
RespectBrowserAcceptHeaderTests.cs (2)
41var responseData = await response.Content.ReadAsStringAsync(); 60var responseData = await response.Content.ReadAsStringAsync();
RoutingDynamicOrderTest.cs (1)
129var content = await response.Content.ReadAsStringAsync();
RoutingDynamicTest.cs (7)
34var content = await response.Content.ReadAsStringAsync(); 49var content = await response.Content.ReadAsStringAsync(); 64var content = await response.Content.ReadAsStringAsync(); 94var content = await response.Content.ReadAsStringAsync(); 110var content = await response.Content.ReadAsStringAsync(); 126var content = await response.Content.ReadAsStringAsync(); 162var content = await response.Content.ReadAsStringAsync();
RoutingEndpointRoutingTest.cs (22)
26var body = await response.Content.ReadAsStringAsync(); 47var body = await response.Content.ReadAsStringAsync(); 73var body = await response.Content.ReadAsStringAsync(); 89var body = await response.Content.ReadAsStringAsync(); 105var body = await response.Content.ReadAsStringAsync(); 133var body = await response.Content.ReadAsStringAsync(); 153var body = await response.Content.ReadAsStringAsync(); 173var body = await response.Content.ReadAsStringAsync(); 193var body = await response.Content.ReadAsStringAsync(); 211var body = await response.Content.ReadAsStringAsync(); 226var body = await response.Content.ReadAsStringAsync(); 243var body = await response.Content.ReadAsStringAsync(); 270var body = await response.Content.ReadAsStringAsync(); 295var body = await response.Content.ReadAsStringAsync(); 310var body = await response.Content.ReadAsStringAsync(); 330var body = await response.Content.ReadAsStringAsync(); 349var body = await response.Content.ReadAsStringAsync(); 368var body = await response.Content.ReadAsStringAsync(); 386var body = await response.Content.ReadAsStringAsync(); 401var body = await response.Content.ReadAsStringAsync(); 416var body = await response.Content.ReadAsStringAsync(); 431var body = await response.Content.ReadAsStringAsync();
RoutingFallbackTest.cs (6)
34var content = await response.Content.ReadAsStringAsync(); 49var content = await response.Content.ReadAsStringAsync(); 65var content = await response.Content.ReadAsStringAsync(); 81var content = await response.Content.ReadAsStringAsync(); 97var content = await response.Content.ReadAsStringAsync(); 113var content = await response.Content.ReadAsStringAsync();
RoutingTests.cs (3)
27var body = await response.Content.ReadAsStringAsync(); 56var body = await response.Content.ReadAsStringAsync(); 78var body = await response.Content.ReadAsStringAsync();
RoutingTestsBase.cs (63)
37var body = await response.Content.ReadAsStringAsync(); 55var body = await response.Content.ReadAsStringAsync(); 81var body = await response.Content.ReadAsStringAsync(); 103var body = await response.Content.ReadAsStringAsync(); 123var body = await response.Content.ReadAsStringAsync(); 152var body = await response.Content.ReadAsStringAsync(); 163body = await response.Content.ReadAsStringAsync(); 184var body = await response.Content.ReadAsStringAsync(); 196var body = await response.Content.ReadAsStringAsync(); 229var body = await response.Content.ReadAsStringAsync(); 241var body = await response.Content.ReadAsStringAsync(); 254var body = await response.Content.ReadAsStringAsync(); 278var body = await response.Content.ReadAsStringAsync(); 312var body = await response.Content.ReadAsStringAsync(); 349var body = await response.Content.ReadAsStringAsync(); 364var body = await response.Content.ReadAsStringAsync(); 397var body = await response.Content.ReadAsStringAsync(); 462var body = await response.Content.ReadAsStringAsync(); 489var body = await response.Content.ReadAsStringAsync(); 531var body = await response.Content.ReadAsStringAsync(); 559var body = await response.Content.ReadAsStringAsync(); 625var body = await response.Content.ReadAsStringAsync(); 642var body = await response.Content.ReadAsStringAsync(); 672var body = await response.Content.ReadAsStringAsync(); 699var body = await response.Content.ReadAsStringAsync(); 724var body = await response.Content.ReadAsStringAsync(); 744var body = await response.Content.ReadAsStringAsync(); 767var body = await response.Content.ReadAsStringAsync(); 789var body = await response.Content.ReadAsStringAsync(); 814var body = await response.Content.ReadAsStringAsync(); 834var body = await response.Content.ReadAsStringAsync(); 857var body = await response.Content.ReadAsStringAsync(); 878var body = await response.Content.ReadAsStringAsync(); 899var body = await response.Content.ReadAsStringAsync(); 920var body = await response.Content.ReadAsStringAsync(); 975var body = await response.Content.ReadAsStringAsync(); 995var body = await response.Content.ReadAsStringAsync(); 1015var body = await response.Content.ReadAsStringAsync(); 1035var body = await response.Content.ReadAsStringAsync(); 1059var body = await response.Content.ReadAsStringAsync(); 1077var body = await response.Content.ReadAsStringAsync(); 1099var body = await response.Content.ReadAsStringAsync(); 1117var body = await response.Content.ReadAsStringAsync(); 1139var body = await response.Content.ReadAsStringAsync(); 1160var body = await response.Content.ReadAsStringAsync(); 1181var body = await response.Content.ReadAsStringAsync(); 1203var body = await response.Content.ReadAsStringAsync(); 1225var body = await response.Content.ReadAsStringAsync(); 1247var body = await response.Content.ReadAsStringAsync(); 1269var body = await response.Content.ReadAsStringAsync(); 1289var body = await response.Content.ReadAsStringAsync(); 1310var body = await response.Content.ReadAsStringAsync(); 1331var body = await response.Content.ReadAsStringAsync(); 1351var body = await response.Content.ReadAsStringAsync(); 1372var body = await response.Content.ReadAsStringAsync(); 1393var body = await response.Content.ReadAsStringAsync(); 1414var body = await response.Content.ReadAsStringAsync(); 1435var body = await response.Content.ReadAsStringAsync(); 1456var body = await response.Content.ReadAsStringAsync(); 1482var body = await response.Content.ReadAsStringAsync(); 1534var body = await response.Content.ReadAsStringAsync(); 1568var content = await response.Content.ReadAsStringAsync(); 1580var content = await response.Content.ReadAsStringAsync();
RoutingWithoutRazorPagesTestsBase.cs (2)
33var body = await response.Content.ReadAsStringAsync(); 54var body = await response.Content.ReadAsStringAsync();
SerializableErrorTests.cs (4)
50var responseData = await response.Content.ReadAsStringAsync(); 74var responseData = await response.Content.ReadAsStringAsync(); 117var responseData = await response.Content.ReadAsStringAsync(); 158var responseData = await response.Content.ReadAsStringAsync();
SimpleWithWebApplicationBuilderTests.cs (5)
56var content = await response.Content.ReadAsStringAsync(); 72var content = await response.Content.ReadAsStringAsync(); 89var content = await response.Content.ReadAsStringAsync(); 131var content = await response.Content.ReadAsStringAsync(); 276var actual = await response.Content.ReadAsStringAsync();
StreamOutputFormatterTest.cs (1)
27var body = await response.Content.ReadAsStringAsync();
SystemTextJsonOutputFormatterTest.cs (3)
29Assert.Equal("\"Hello Mr. \\uD83E\\uDD8A\"", await response.Content.ReadAsStringAsync()); 48Assert.Equal("\"Une b\\u00EAte de cirque\"", await response.Content.ReadAsStringAsync()); 71Assert.Equal(expected, await response.Content.ReadAsStringAsync());
TagHelperComponentTagHelperTest.cs (3)
33var responseContent = await response.Content.ReadAsStringAsync(); 53var responseContent = await response.Content.ReadAsStringAsync(); 73var responseContent = await response.Content.ReadAsStringAsync();
TagHelpersFromServicesTest.cs (1)
26var responseText = await response.Content.ReadAsStringAsync();
TagHelpersTest.cs (7)
55var responseContent = await response.Content.ReadAsStringAsync(); 92var responseContent = await response.Content.ReadAsStringAsync(); 107var responseContent = await response.Content.ReadAsStringAsync(); 209var responseContent = await response.Content.ReadAsStringAsync(); 237var responseContent = await response.Content.ReadAsStringAsync(); 265var responseContent = await response.Content.ReadAsStringAsync(); 287var responseContent = await response.Content.ReadAsStringAsync();
TempDataInCookiesTest.cs (2)
97var body = await response.Content.ReadAsStringAsync(); 153var body = await response.Content.ReadAsStringAsync();
TempDataInCookiesUsingCookieConsentTest.cs (1)
49var body = await response.Content.ReadAsStringAsync();
TempDataPropertyTest.cs (6)
43var body = await response.Content.ReadAsStringAsync(); 71var body = await response.Content.ReadAsStringAsync(); 100var body = await response.Content.ReadAsStringAsync(); 108body = await response.Content.ReadAsStringAsync(); 137var body = await response.Content.ReadAsStringAsync(); 144body = await response.Content.ReadAsStringAsync();
TempDataTestBase.cs (9)
35var body = await response.Content.ReadAsStringAsync(); 60var body = await response.Content.ReadAsStringAsync(); 91var body = await response.Content.ReadAsStringAsync(); 116var body = await peekResponse.Content.ReadAsStringAsync(); 124body = await getResponse.Content.ReadAsStringAsync(); 156var body = await response.Content.ReadAsStringAsync(); 195var body = await response.Content.ReadAsStringAsync(); 213var responseBody = await response.Content.ReadAsStringAsync(); 231var responseBody = await response.Content.ReadAsStringAsync();
TestingInfrastructureTests.cs (2)
108var modifiedHeaderWasSent = await response.Content.ReadAsStringAsync(); 152Assert.Equal("Test", await response.Content.ReadAsStringAsync());
UrlResolutionTest.cs (2)
37var responseContent = await response.Content.ReadAsStringAsync(); 54var responseContent = await response.Content.ReadAsStringAsync();
VersioningEndpointRoutingTests.cs (3)
26var body = await response.Content.ReadAsStringAsync(); 45var body = await response.Content.ReadAsStringAsync(); 66var body = await response.Content.ReadAsStringAsync();
VersioningTests.cs (1)
25var body = await response.Content.ReadAsStringAsync();
VersioningTestsBase.cs (22)
41var body = await response.Content.ReadAsStringAsync(); 65var body = await response.Content.ReadAsStringAsync(); 85var body = await response.Content.ReadAsStringAsync(); 106var body = await response.Content.ReadAsStringAsync(); 125var body = await response.Content.ReadAsStringAsync(); 144var body = await response.Content.ReadAsStringAsync(); 171var body = await response.Content.ReadAsStringAsync(); 220var body = await response.Content.ReadAsStringAsync(); 265var body = await response.Content.ReadAsStringAsync(); 287var body = await response.Content.ReadAsStringAsync(); 308var body = await response.Content.ReadAsStringAsync(); 329var body = await response.Content.ReadAsStringAsync(); 351var body = await response.Content.ReadAsStringAsync(); 372var body = await response.Content.ReadAsStringAsync(); 391var body = await response.Content.ReadAsStringAsync(); 413var body = await response.Content.ReadAsStringAsync(); 434var body = await response.Content.ReadAsStringAsync(); 455var body = await response.Content.ReadAsStringAsync(); 479var body = await response.Content.ReadAsStringAsync(); 498var body = await response.Content.ReadAsStringAsync(); 517var body = await response.Content.ReadAsStringAsync(); 539var body = await response.Content.ReadAsStringAsync();
ViewComponentFromServicesTests.cs (1)
26var responseText = await response.Content.ReadAsStringAsync();
ViewEngineTests.cs (5)
71var body = await response.Content.ReadAsStringAsync(); 158var body = await response.Content.ReadAsStringAsync(); 248var body = await response.Content.ReadAsStringAsync(); 302var body = await response.Content.ReadAsStringAsync(); 420var body = await response.Content.ReadAsStringAsync();
XmlDataContractSerializerFormattersWrappingTest.cs (12)
43var result = await response.Content.ReadAsStringAsync(); 67var result = await response.Content.ReadAsStringAsync(); 91var result = await response.Content.ReadAsStringAsync(); 114var result = await response.Content.ReadAsStringAsync(); 137var result = await response.Content.ReadAsStringAsync(); 162var result = await response.Content.ReadAsStringAsync(); 185var result = await response.Content.ReadAsStringAsync(); 206var result = await response.Content.ReadAsStringAsync(); 227var content = await response.Content.ReadAsStringAsync(); 254var content = await response.Content.ReadAsStringAsync(); 269var content = await response.Content.ReadAsStringAsync(); 302var content = await response.Content.ReadAsStringAsync();
XmlDataContractSerializerInputFormatterTest.cs (1)
34var data = await response.Content.ReadAsStringAsync();
XmlOutputFormatterTests.cs (9)
41await response.Content.ReadAsStringAsync()); 62await response.Content.ReadAsStringAsync()); 86await response.Content.ReadAsStringAsync()); 107await response.Content.ReadAsStringAsync()); 130await response.Content.ReadAsStringAsync()); 168await response.Content.ReadAsStringAsync()); 188await response.Content.ReadAsStringAsync()); 209await response.Content.ReadAsStringAsync()); 230await response.Content.ReadAsStringAsync());
XmlSerializerFormattersWrappingTest.cs (12)
41var result = await response.Content.ReadAsStringAsync(); 62var result = await response.Content.ReadAsStringAsync(); 83var result = await response.Content.ReadAsStringAsync(); 103var result = await response.Content.ReadAsStringAsync(); 123var result = await response.Content.ReadAsStringAsync(); 145var result = await response.Content.ReadAsStringAsync(); 165var result = await response.Content.ReadAsStringAsync(); 183var result = await response.Content.ReadAsStringAsync(); 209var content = await response.Content.ReadAsStringAsync(); 236var content = await response.Content.ReadAsStringAsync(); 251var content = await response.Content.ReadAsStringAsync(); 283var content = await response.Content.ReadAsStringAsync();
XmlSerializerInputFormatterTests.cs (2)
36Assert.Equal(sampleInputInt.ToString(CultureInfo.InvariantCulture), await response.Content.ReadAsStringAsync()); 53var 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)
67var body = await response.Content.ReadAsStringAsync(); 127var body = await response.Content.ReadAsStringAsync(); 288var body = await response.Content.ReadAsStringAsync(); 335var body = await response.Content.ReadAsStringAsync(); 495var 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)
1474return await httpResponse.Content.ReadAsStringAsync(); 2689var 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 (3)
StaticAssetsIntegrationTests.cs (3)
68Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync()); 122Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync()); 175Assert.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)
416Assert.Equal("BodyStarted,BodyFinished", await response.Content.ReadAsStringAsync()); 435Assert.Equal("BodyFinished", await response.Content.ReadAsStringAsync()); 534var 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)
166throw new Exception($"Feed '{baseFeedName}' was not created. Request failed with status code {createFeedResponse.StatusCode}. Exception: {await createFeedResponse.Content.ReadAsStringAsync()}");
src\PublishArtifactsInManifestBase.cs (1)
918string 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)
1112var connectionFacts = await 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());