9 instantiations of TestModel
Microsoft.JSInterop.Tests (9)
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (9)
18
var dotNetObjectRef = DotNetObjectReference.Create(new
TestModel
());
32
var dotNetObjectRef = DotNetObjectReference.Create(new
TestModel
());
45
var input = new
TestModel
();
60
var input = new
TestModel
();
75
var input = new
TestModel
();
94
var instance1 = new
TestModel
();
95
var instance2 = new
TestModel
();
113
var input = new
TestModel
();
134
var dotNetObjectRef = DotNetObjectReference.Create(new
TestModel
());
13 references to TestModel
Microsoft.JSInterop.Tests (13)
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (13)
23
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>>(json, JsonSerializerOptions));
37
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>>(json, JsonSerializerOptions));
45
var
input = new TestModel();
52
var ex = Record.Exception(() => JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>>(json, JsonSerializerOptions));
60
var
input = new TestModel();
67
var ex = Record.Exception(() => JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>>(json, JsonSerializerOptions));
75
var
input = new TestModel();
82
var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>>(json, JsonSerializerOptions)!;
94
var
instance1 = new TestModel();
95
var
instance2 = new TestModel();
102
var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>[]>(json, JsonSerializerOptions)!;
113
var
input = new TestModel();
123
var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<
TestModel
>>(json, JsonSerializerOptions)!;