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