3 instantiations of TodoJsonChild
Microsoft.AspNetCore.Http.Results.Tests (3)
HttpResultsHelperTests.cs (2)
152var value = new TodoJsonChild() 229yield return new TodoJsonChild() { Id = 3, IsComplete = true, Name = "Three", Child = "ThreeChild" };
TestJsonContext.TodoJsonChild.g.cs (1)
33ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild(),
24 references to TodoJsonChild
Microsoft.AspNetCore.Http.Results.Tests (24)
HttpResultsHelperTests.cs (7)
152var value = new TodoJsonChild() 172var body = JsonSerializer.Deserialize<TodoJsonChild>(responseBodyStream.ToArray(), serializerOptions); 214var three = Assert.IsType<TodoJsonChild>(body[2]); 281[JsonDerivedType(typeof(TodoJsonChild), nameof(TodoJsonChild))]
TestJsonContext.GetJsonTypeInfo.g.cs (1)
44if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild))
TestJsonContext.TodoJsonChild.g.cs (16)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>? _TodoJsonChild; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> TodoJsonChild 24get => _TodoJsonChild ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> Create_TodoJsonChild(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild), 60Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)obj).Child, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)obj).Child = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138private void TodoJsonChildSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild? value) 148writer.WriteString(PropName_Child, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)value).Child);