8 writes to CustomData
Microsoft.AspNetCore.JsonPatch.Tests (8)
JsonPatchDocumentJObjectTest.cs (8)
20var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { Emails = new[] { "foo@bar.com" } }) }; 36var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { Email = "foo@bar.com", Name = "Bar" }) }; 50var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { Email = "foo@bar.com", Name = "Bar" }) }; 67var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { Email = "foo@bar.com" }) }; 83var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { FirstName = "Foo", LastName = "Bar" }) }; 99var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { FirstName = "Bar" }) }; 148var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { Email = "foo@bar.com", Name = "Bar" }) }; 164var model = new ObjectWithJObject { CustomData = JObject.FromObject(new { Email = "foo@bar.com", Name = "Bar" }) };
10 references to CustomData
Microsoft.AspNetCore.JsonPatch.Tests (10)
JsonPatchDocumentJObjectTest.cs (10)
29Assert.Equal("foo@baz.com", model.CustomData["Emails"][1].Value<string>()); 60Assert.Equal("Bar Baz", model.CustomData["Name"].Value<string>()); 76Assert.Equal("foo@bar.com", model.CustomData["UserName"].Value<string>()); 92Assert.False(model.CustomData.ContainsKey("LastName")); 108Assert.False(model.CustomData.ContainsKey("FirstName")); 109Assert.Equal("Bar", model.CustomData["LastName"].Value<string>()); 125Assert.Equal("Foo", model.CustomData["Name"].Value<string>()); 141Assert.Equal(JTokenType.Null, model.CustomData["Name"].Type); 157Assert.Equal("foo@baz.com", model.CustomData["Email"].Value<string>()); 173Assert.Equal(JTokenType.Null, model.CustomData["Email"].Type);