80 references to ReadFromJsonAsync
Aspire.Dashboard.Tests (1)
Integration\FrontendBrowserTokenAuthTests.cs (1)
152var actualResult = await response.Content.ReadFromJsonAsync<bool>();
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
263var databases = await response.Content.ReadFromJsonAsync<List<RedisInsightDatabaseModel>>(cts.Token);
Diagnostics.FunctionalTests (5)
DeveloperExceptionPageSampleTest.cs (1)
48var body = await response.Content.ReadFromJsonAsync<ProblemDetails>();
ProblemDetailsExceptionHandlerSampleTest.cs (2)
33var body = await response.Content.ReadFromJsonAsync<ProblemDetails>(); 50var body = await response.Content.ReadFromJsonAsync<ProblemDetails>();
StatusCodeSampleTest.cs (2)
88var body = await response.Content.ReadFromJsonAsync<ProblemDetails>(); 105var body = await response.Content.ReadFromJsonAsync<ProblemDetails>();
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
39var timings = await response.Content.ReadFromJsonAsync<long[]>();
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
39var timings = await response.Content.ReadFromJsonAsync<long[]>();
Microsoft.AspNetCore.Diagnostics.Tests (4)
DeveloperExceptionPageMiddlewareTest.cs (3)
69var body = await response.Content.ReadFromJsonAsync<ProblemDetails>(); 122var body = await response.Content.ReadFromJsonAsync<ProblemDetails>(); 181var body = await response.Content.ReadFromJsonAsync<ProblemDetails>();
ExceptionHandlerMiddlewareTest.cs (1)
75var body = await response.Content.ReadFromJsonAsync<ProblemDetails>();
Microsoft.AspNetCore.Identity.FunctionalTests (40)
MapIdentityApiTests.cs (40)
115var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 147var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 182var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 261var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 296var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 300var refreshContent = await refreshResponse.Content.ReadFromJsonAsync<JsonElement>(); 342var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 366var refreshContent = await refreshResponse.Content.ReadFromJsonAsync<JsonElement>(); 370refreshContent = await refreshResponse.Content.ReadFromJsonAsync<JsonElement>(); 415var refreshContent = await refreshResponse.Content.ReadFromJsonAsync<JsonElement>(); 672var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 691var twoFactorKeyContent = await twoFactorKeyResponse.Content.ReadFromJsonAsync<JsonElement>(); 703var enable2faContent = await enable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 730var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 735var twoFactorKeyContent = await twoFactorKeyResponse.Content.ReadFromJsonAsync<JsonElement>(); 744var enable2faContent = await enable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 757var recoveryLoginContent = await recoveryLoginResponse.Content.ReadFromJsonAsync<JsonElement>(); 764var disable2faContent = await disable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 782var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 787var twoFactorKeyContent = await twoFactorKeyResponse.Content.ReadFromJsonAsync<JsonElement>(); 799var enable2faContent = await enable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 803var resetKeyContent = await resetKeyResponse.Content.ReadFromJsonAsync<JsonElement>(); 816var reenable2faContent = await reenable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 829var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 834var twoFactorKeyContent = await twoFactorKeyResponse.Content.ReadFromJsonAsync<JsonElement>(); 843var enable2faContent = await enable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 859var recoveryLoginContent = await recoveryLoginResponse.Content.ReadFromJsonAsync<JsonElement>(); 866var updated2faContent = await updated2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 874var resetRecoveryContent = await resetRecoveryResponse.Content.ReadFromJsonAsync<JsonElement>(); 900var twoFactorKeyContent = await twoFactorKeyResponse.Content.ReadFromJsonAsync<JsonElement>(); 912var enable2faContent = await enable2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 924var session2faContent = await session2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 933var session2faContent2 = await session2faResponse2.Content.ReadFromJsonAsync<JsonElement>(); 942var persistent2faContent = await persistent2faResponse.Content.ReadFromJsonAsync<JsonElement>(); 1056var infoPostContent = await infoPostResponse.Content.ReadFromJsonAsync<JsonElement>(); 1150var infoPostContent = await infoPostResponse.Content.ReadFromJsonAsync<JsonElement>(); 1249var infoPostContent = await infoPostResponse.Content.ReadFromJsonAsync<JsonElement>(); 1395var loginContent = await loginResponse.Content.ReadFromJsonAsync<JsonElement>(); 1450var problem = await response.Content.ReadFromJsonAsync<HttpValidationProblemDetails>(); 1460var problem = await response.Content.ReadFromJsonAsync<HttpValidationProblemDetails>();
Microsoft.AspNetCore.Mvc.FunctionalTests (26)
BasicTests.cs (1)
629var problem = await response.Content.ReadFromJsonAsync<ValidationProblemDetails>();
ControllerEndpointFiltersTest.cs (3)
42var content = await response.Content.ReadFromJsonAsync<Dictionary<string, object>>(); 55var content = await response.Content.ReadFromJsonAsync<Dictionary<string, object>>(); 80var content = await response.Content.ReadFromJsonAsync<Dictionary<string, object>>();
HttpActionResultTests.cs (1)
42var result = await response.Content.ReadFromJsonAsync<Contact>();
InputFormatterTests.cs (2)
190var problemDetails = await response.Content.ReadFromJsonAsync<ValidationProblemDetails>(); 208var problemDetails = await response.Content.ReadFromJsonAsync<ValidationProblemDetails>();
JsonInputFormatterTestBase.cs (2)
161var problem = await response.Content.ReadFromJsonAsync<ValidationProblemDetails>(); 192var actual = await response.Content.ReadFromJsonAsync<JsonFormatterController.SimpleModel>();
ReadFromDisconnectedClientTest.cs (1)
66var problem = await response.Content.ReadFromJsonAsync<ValidationProblemDetails>();
RoutingAcrossPipelineBranchesTest.cs (9)
48var subdirContent = await subdirResponse.Content.ReadFromJsonAsync<RouteInfo>(); 51var commonContent = await commonResponse.Content.ReadFromJsonAsync<RouteInfo>(); 54var defaultContent = await defaultResponse.Content.ReadFromJsonAsync<RouteInfo>(); 83var subdirContent = await subdirResponse.Content.ReadFromJsonAsync<RouteInfo>(); 86var commonContent = await commonResponse.Content.ReadFromJsonAsync<RouteInfo>(); 89var defaultContent = await defaultResponse.Content.ReadFromJsonAsync<RouteInfo>(); 116var subdirContent = await subdirResponse.Content.ReadFromJsonAsync<RouteInfo>(); 119var defaultContent = await defaultResponse.Content.ReadFromJsonAsync<RouteInfo>(); 167var content = await response.Content.ReadFromJsonAsync<RouteInfo>();
RoutingDynamicOrderTest.cs (5)
48var content = await response.Content.ReadFromJsonAsync<RouteInfo>(); 70var content = await response.Content.ReadFromJsonAsync<RouteInfo>(); 93var content = await response.Content.ReadFromJsonAsync<RouteInfo>(); 115var content = await response.Content.ReadFromJsonAsync<RouteInfo>(); 159var content = await response.Content.ReadFromJsonAsync<RouteInfo>();
RoutingGroupsTest.cs (1)
43var content = await response.Content.ReadFromJsonAsync<RouteInfo>();
RoutingGroupsWithMetadataTest.cs (1)
44var content = await response.Content.ReadFromJsonAsync<string[]>();
Microsoft.AspNetCore.Routing.FunctionalTests (1)
RouteHandlerTest.cs (1)
55var echoedTodo = await response.Content.ReadFromJsonAsync<Todo>();