3 writes to SimpleObjectList
Microsoft.AspNetCore.JsonPatch.Tests (3)
IntegrationTests\ListIntegrationTest.cs (2)
81
SimpleObjectList
= new List<SimpleObject>()
322
SimpleObjectList
= new List<SimpleObject>() {
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
27
SimpleObjectList
= new List<SimpleObject>();
9 references to SimpleObjectList
Microsoft.AspNetCore.JsonPatch.Tests (9)
IntegrationTests\ListIntegrationTest.cs (9)
95
patchDocument.Add(o => o.
SimpleObjectList
[0].StringProperty, "ChangedString1");
101
Assert.Equal("ChangedString1", targetObject.
SimpleObjectList
[0].StringProperty);
330
patchDocument.Move(o => o.
SimpleObjectList
, 0, o => o.
SimpleObjectList
, 1);
336
Assert.Equal(new List<SimpleObject>() { simpleObject2, simpleObject1, simpleObject3 }, targetObject.
SimpleObjectList
);
337
Assert.Equal(2, targetObject.
SimpleObjectList
[0].IntegerValue);
338
Assert.Equal(1, targetObject.
SimpleObjectList
[1].IntegerValue);
339
Assert.Same(simpleObject2, targetObject.
SimpleObjectList
[0]);
340
Assert.Same(simpleObject1, targetObject.
SimpleObjectList
[1]);