4 writes to CustomData
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (4)
JsonPatchDocumentJObjectTest.cs (4)
18
var model = new ObjectWithJObject {
CustomData
= (JsonObject)JsonSerializer.SerializeToNode(new { Emails = new[] { "foo@bar.com" } }) };
34
var model = new ObjectWithJObject {
CustomData
= (JsonObject)JsonSerializer.SerializeToNode(new { Email = "foo@bar.com", Name = "Bar" }) };
48
var model = new ObjectWithJObject {
CustomData
= new JsonObject([new("Email", "foo@bar.com"), new("Name", "Bar")]) };
65
var model = new ObjectWithJObject {
CustomData
= new JsonObject([new("Email", "foo@bar.com")]) };
1 reference to CustomData
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
JsonPatchDocumentJObjectTest.cs (1)
27
Assert.Equal("foo@baz.com", model.
CustomData
["Emails"][1].GetValue<string>());