34 references to ApplyTo
Microsoft.AspNetCore.JsonPatch.Tests (34)
IntegrationTests\ListIntegrationTest.cs (10)
29
patchDocument.
ApplyTo
(targetObject);
48
var exception = Assert.Throws<JsonPatchException>(() => { patchDocument.
ApplyTo
(targetObject); });
69
patchDocument.
ApplyTo
(targetObject);
98
patchDocument.
ApplyTo
(targetObject);
120
patchDocument.
ApplyTo
(targetObject);
185
patchDocument.
ApplyTo
(targetObject);
226
patchDocument.
ApplyTo
(targetObject);
248
var exception = Assert.Throws<JsonPatchException>(() => { patchDocument.
ApplyTo
(targetObject); });
333
patchDocument.
ApplyTo
(targetObject);
359
patchDocument.
ApplyTo
(targetObject);
IntegrationTests\NestedObjectIntegrationTest.cs (13)
30
patchDocument.
ApplyTo
(targetObject);
53
deserialized.
ApplyTo
(targetObject);
72
patchDocument.
ApplyTo
(targetObject.NestedObject);
92
patchDocument.
ApplyTo
(targetObject);
114
patchDocument.
ApplyTo
(targetObject);
152
patchDocument.
ApplyTo
(targetObject);
175
patchDocument.
ApplyTo
(targetObject);
198
patchDocument.
ApplyTo
(targetObject);
226
patchDocument.
ApplyTo
(targetObject);
250
patchDocument.
ApplyTo
(targetObject);
270
patchDocument.
ApplyTo
(targetObject);
293
patchDocument.
ApplyTo
(targetObject);
324
patchDocument.
ApplyTo
(targetObject);
JsonPatchDocumentJObjectTest.cs (10)
26
patch.
ApplyTo
(model);
43
Assert.Throws<JsonPatchException>(() => patch.
ApplyTo
(model));
57
patch.
ApplyTo
(model);
73
patch.
ApplyTo
(model);
89
patch.
ApplyTo
(model);
105
patch.
ApplyTo
(model);
122
patch.
ApplyTo
(model);
138
patch.
ApplyTo
(model);
154
patch.
ApplyTo
(model);
170
patch.
ApplyTo
(model);
JsonPatchDocumentTest.cs (1)
65
deserialized.
ApplyTo
(targetObject);