1 write to JsonSerializerOptions
Microsoft.JSInterop.Tests (1)
Infrastructure\JSStreamReferenceJsonConverterTest.cs (1)
16
JsonSerializerOptions
= JSRuntime.JsonSerializerOptions;
9 references to JsonSerializerOptions
Microsoft.JSInterop.Tests (9)
Infrastructure\JSStreamReferenceJsonConverterTest.cs (9)
17
JsonSerializerOptions
.Converters.Add(new JSStreamReferenceJsonConverter(JSRuntime));
27
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
));
38
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
));
49
var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
));
60
var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
));
72
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
));
85
var deserialized = (JSStreamReference)JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
)!;
101
var deserialized = (JSStreamReference)JsonSerializer.Deserialize<IJSStreamReference>(json,
JsonSerializerOptions
)!;
115
var json = JsonSerializer.Serialize((IJSStreamReference)jsObjectRef,
JsonSerializerOptions
);