5 writes to InheritedObject
Microsoft.AspNetCore.JsonPatch.Tests (5)
IntegrationTests\NestedObjectIntegrationTest.cs (4)
215
InheritedObject
= new InheritedObject()
243
InheritedObject
= new InheritedObject()
263
InheritedObject
= new InheritedObject()
317
InheritedObject
= iDto
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
26
InheritedObject
= new InheritedObject();
9 references to InheritedObject
Microsoft.AspNetCore.JsonPatch.Tests (9)
IntegrationTests\NestedObjectIntegrationTest.cs (9)
223
patchDocument.Copy(o => o.
InheritedObject
, o => o.SimpleObject);
231
Assert.Equal("C", targetObject.
InheritedObject
.StringProperty);
232
Assert.Equal("D", targetObject.
InheritedObject
.AnotherStringProperty);
233
Assert.NotSame(targetObject.SimpleObject.StringProperty, targetObject.
InheritedObject
.StringProperty);
247
patchDocument.Copy(o => o.
InheritedObject
, o => o.SimpleObject);
267
patchDocument.Copy(o => o.
InheritedObject
, o => o.SimpleObject);
273
Assert.NotSame(targetObject.SimpleObject, targetObject.
InheritedObject
);
321
patchDocument.Move(o => o.
InheritedObject
, o => o.SimpleObject);
330
Assert.Null(targetObject.
InheritedObject
);