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