170 references to HttpResultsHelperTests
Microsoft.AspNetCore.Http.Results.Tests (170)
TestJsonContext.g.cs (2)
26
public static global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TestJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
TestJsonContext.GetJsonTypeInfo.g.cs (7)
28
if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo))
32
if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]))
36
if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo))
40
if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild))
44
if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoJsonChild))
48
if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct))
52
if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>))
TestJsonContext.IAsyncEnumerableJsonTodo.g.cs (10)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>>? _IAsyncEnumerableJsonTodo;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>> IAsyncEnumerableJsonTodo
24
get => _IAsyncEnumerableJsonTodo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>> Create_IAsyncEnumerableJsonTodo(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>> jsonTypeInfo))
31
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIAsyncEnumerableInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>, global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>(options, info);
TestJsonContext.JsonTodo.g.cs (23)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>? _JsonTodo;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo> JsonTodo
24
get => _JsonTodo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo> Create_JsonTodo(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>
33
ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo(),
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo).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
.JsonTodo>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.JsonTodoArray.g.cs (10)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]>? _JsonTodoArray;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]> JsonTodoArray
24
get => _JsonTodoArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]> Create_JsonTodoArray(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]> jsonTypeInfo))
31
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo>(options, info);
47
private void JsonTodoArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.JsonTodo[]? value)
TestJsonContext.Todo.g.cs (27)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo>? _Todo;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo> Todo
24
get => _Todo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo> Create_Todo(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo>
33
ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo(),
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).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
.Todo>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
118
private void TodoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo? value)
128
writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).Id);
129
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).Name);
130
writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).IsComplete);
TestJsonContext.TodoChild.g.cs (32)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild>? _TodoChild;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild> TodoChild
24
get => _TodoChild ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild> Create_TodoChild(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild>
33
ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild(),
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild).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
.TodoChild>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild)obj).Child,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild)obj).Child = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
120
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete,
121
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete = value!,
128
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
138
private void TodoChildSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild? value)
148
writer.WriteString(PropName_Child, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoChild)value).Child);
149
writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).Id);
150
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).Name);
151
writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).IsComplete);
TestJsonContext.TodoJsonChild.g.cs (32)
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>
33
ObjectCreator = () => new 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),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Id = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).Name = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo),
120
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete,
121
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)obj).IsComplete = value!,
128
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), 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);
149
writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).Id);
150
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).Name);
151
writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.Todo)value).IsComplete);
TestJsonContext.TodoStruct.g.cs (27)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>? _TodoStruct;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct> TodoStruct
24
get => _TodoStruct ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct> Create_TodoStruct(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>
33
ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct(),
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct).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
.TodoStruct>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct)obj).Id,
61
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>(obj).Id = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct)obj).Name,
81
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>(obj).Name = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct)obj).IsComplete,
101
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct>(obj).IsComplete = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
118
private void TodoStructSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct value)
122
writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct)value).Id);
123
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct)value).Name);
124
writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.
HttpResultsHelperTests
.TodoStruct)value).IsComplete);