1 type derived from JsonTodo
Microsoft.AspNetCore.Http.Results.Tests (1)
HttpResultsHelperTests.cs (1)
286
private class TodoJsonChild :
JsonTodo
2 instantiations of JsonTodo
Microsoft.AspNetCore.Http.Results.Tests (2)
HttpResultsHelperTests.cs (2)
223
yield return new
JsonTodo
() { Id = 1, IsComplete = true, Name = "One" };
228
yield return new
JsonTodo
() { Id = 2, IsComplete = false, Name = "Two" };
10 references to JsonTodo
Microsoft.AspNetCore.Http.Results.Tests (10)
HttpResultsHelperTests.cs (10)
169
await HttpResultsHelper.WriteResultAsJsonAsync<
JsonTodo
>(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
200
var body = JsonSerializer.Deserialize<
JsonTodo
[]>(responseBodyStream.ToArray(), serializerOptions);
204
var
one = Assert.IsType<
JsonTodo
>(body[0]);
209
var
two = Assert.IsType<
JsonTodo
>(body[1]);
221
private static async IAsyncEnumerable<
JsonTodo
> GetTodosAsync()
251
[JsonSerializable(typeof(
JsonTodo
))]
253
[JsonSerializable(typeof(IAsyncEnumerable<
JsonTodo
>))]
254
[JsonSerializable(typeof(
JsonTodo
[]))]