3 references to ReadFromJsonAsync
Microsoft.AspNetCore.Http.Extensions.Tests (3)
HttpRequestJsonExtensionsTests.cs (3)
176
var result = (int?)await context.Request.
ReadFromJsonAsync
(typeof(int));
191
var result = (Dictionary<string, string>?)await context.Request.
ReadFromJsonAsync
(typeof(Dictionary<string, string>));
205
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await context.Request.
ReadFromJsonAsync
(typeof(object)));