18 writes to SimpleObject
Microsoft.AspNetCore.JsonPatch.Tests (18)
IntegrationTests\ListIntegrationTest.cs (8)
19
SimpleObject
= new SimpleObject()
38
SimpleObject
= new SimpleObject()
59
SimpleObject
= new SimpleObject()
110
SimpleObject
= new SimpleObject()
175
SimpleObject
= new SimpleObject()
216
SimpleObject
= new SimpleObject()
238
SimpleObject
= new SimpleObject()
349
SimpleObject
= new SimpleObject()
IntegrationTests\NestedObjectIntegrationTest.cs (9)
104
SimpleObject
= new SimpleObject()
142
SimpleObject
= new SimpleObject()
164
SimpleObject
= new SimpleObject()
187
SimpleObject
= new SimpleObject()
210
SimpleObject
= new SimpleObject()
242
SimpleObject
= new SimpleObject(),
262
SimpleObject
= new SimpleObject(),
282
SimpleObject
= new SimpleObject()
316
SimpleObject
= sDto,
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
25
SimpleObject
= new SimpleObject();
39 references to SimpleObject
Microsoft.AspNetCore.JsonPatch.Tests (39)
IntegrationTests\ListIntegrationTest.cs (13)
26
patchDocument.Test(o => o.
SimpleObject
.IntegerList, 3, 2);
45
patchDocument.Test(o => o.
SimpleObject
.IntegerList, 4, -1);
66
patchDocument.Add(o => (List<int>)o.
SimpleObject
.IntegerIList, 4, 0);
72
Assert.Equal(new List<int>() { 4, 1, 2, 3 }, targetObject.
SimpleObject
.IntegerIList);
117
patchDocument.Add(o => o.
SimpleObject
.IntegerList, 4);
123
Assert.Equal(new List<int>() { 1, 2, 3, 4 }, targetObject.
SimpleObject
.IntegerList);
182
patchDocument.Remove<int>(o => o.
SimpleObject
.IntegerList);
188
Assert.Equal(new List<int>() { 1, 2 }, targetObject.
SimpleObject
.IntegerList);
223
patchDocument.Replace(o => o.
SimpleObject
.IntegerList, 5);
229
Assert.Equal(new List<int>() { 1, 2, 5 }, targetObject.
SimpleObject
.IntegerList);
245
patchDocument.Replace(o => o.
SimpleObject
.IntegerList, 5, -1);
356
patchDocument.Move(o => o.
SimpleObject
.IntegerList, 0, o => o.IntegerValue);
362
Assert.Equal(new List<int>() { 2, 3 }, targetObject.
SimpleObject
.IntegerList);
IntegrationTests\NestedObjectIntegrationTest.cs (26)
111
patchDocument.Add(o => o.
SimpleObject
.StringProperty, "B");
117
Assert.Equal("B", targetObject.
SimpleObject
.StringProperty);
149
patchDocument.Remove(o => o.
SimpleObject
.StringProperty);
155
Assert.Null(targetObject.
SimpleObject
.StringProperty);
172
patchDocument.Copy(o => o.
SimpleObject
.StringProperty, o => o.
SimpleObject
.AnotherStringProperty);
178
Assert.Equal("A", targetObject.
SimpleObject
.AnotherStringProperty);
195
patchDocument.Copy(o => o.
SimpleObject
.StringProperty, o => o.
SimpleObject
.AnotherStringProperty);
201
Assert.Null(targetObject.
SimpleObject
.AnotherStringProperty);
223
patchDocument.Copy(o => o.InheritedObject, o => o.
SimpleObject
);
229
Assert.Equal("C", targetObject.
SimpleObject
.StringProperty);
230
Assert.Equal("D", targetObject.
SimpleObject
.AnotherStringProperty);
233
Assert.NotSame(targetObject.
SimpleObject
.StringProperty, targetObject.InheritedObject.StringProperty);
247
patchDocument.Copy(o => o.InheritedObject, o => o.
SimpleObject
);
253
Assert.Equal(typeof(InheritedObject), targetObject.
SimpleObject
.GetType());
267
patchDocument.Copy(o => o.InheritedObject, o => o.
SimpleObject
);
273
Assert.NotSame(targetObject.
SimpleObject
, targetObject.InheritedObject);
290
patchDocument.Move(o => o.
SimpleObject
.IntegerValue, o => o.
SimpleObject
.AnotherIntegerValue);
296
Assert.Equal(2, targetObject.
SimpleObject
.AnotherIntegerValue);
297
Assert.Equal(0, targetObject.
SimpleObject
.IntegerValue);
321
patchDocument.Move(o => o.InheritedObject, o => o.
SimpleObject
);
327
Assert.Equal("C", targetObject.
SimpleObject
.StringProperty);
328
Assert.Equal("D", targetObject.
SimpleObject
.AnotherStringProperty);
329
Assert.Same(iDto, targetObject.
SimpleObject
);