39 references to ApplyTo
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (39)
CustomNamingStrategyTests.cs (1)
31patchDocument.ApplyTo(targetObject);
IntegrationTests\AnonymousObjectIntegrationTest.cs (7)
23patchDocument.ApplyTo(targetObject); 46patchDocument.ApplyTo(targetObject); 69patchDocument.ApplyTo(targetObject); 93patchDocument.ApplyTo(targetObject); 117patchDocument.ApplyTo(targetObject); 139patchDocument.ApplyTo(targetObject); 158patchDocument.ApplyTo(targetObject);
IntegrationTests\DictionaryIntegrationTest.cs (14)
23patchDocument.ApplyTo(model); 37patchDocument.ApplyTo(model); 57patchDocument.ApplyTo(model); 75patchDocument.ApplyTo(model); 93patchDocument.ApplyTo(model); 112patchDocument.ApplyTo(model); 153patchDocument.ApplyTo(model); 170patchDocument.ApplyTo(model); 192patchDocument.ApplyTo(model); 216patchDocument.ApplyTo(model); 238patchDocument.ApplyTo(model); 261patchDocument.ApplyTo(model); 285patchDocument.ApplyTo(model); 309patchDocument.ApplyTo(model);
IntegrationTests\HeterogenousCollectionTests.cs (1)
42patchDocument.ApplyTo(targetObject);
IntegrationTests\ListIntegrationTest.cs (6)
139patchDocument.ApplyTo(targetObject); 162patchDocument.ApplyTo(targetObject); 204patchDocument.ApplyTo(targetObject); 267patchDocument.ApplyTo(targetObject); 286patchDocument.ApplyTo(targetObject); 306patchDocument.ApplyTo(targetObject);
IntegrationTests\SimpleObjectIntegrationTest.cs (8)
26patchDocument.ApplyTo(targetObject); 43patchDocument.ApplyTo(targetObject); 63patchDocument.ApplyTo(targetObject); 83patchDocument.ApplyTo(targetObject); 103patchDocument.ApplyTo(targetObject); 123patchDocument.ApplyTo(targetObject); 143patchDocument.ApplyTo(targetObject); 164var ex = Assert.Throws<JsonPatchException>(() => document.ApplyTo(target));
JsonPatchDocumentJsonPropertyAttributeTest.cs (1)
36patchDocument.ApplyTo(obj);
JsonPatchDocumentTest.cs (1)
131deserialized.ApplyTo(targetObject);