3 references to Json
Microsoft.AspNetCore.Http.Results.Tests (3)
ResultsTests.cs (3)
998
var result = Results.
Json
(null, typeof(string), StringJsonContext.Default) as JsonHttpResult<object>;
1045
Assert.Throws<ArgumentNullException>("context", () => Results.
Json
(null, type: typeof(object), context: null));
1051
var ex = Assert.Throws<InvalidOperationException>(() => Results.
Json
(null, type: typeof(Todo), context: StringJsonContext.Default));