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