7 references to Replace
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (7)
IntegrationTests\AnonymousObjectIntegrationTest.cs (2)
89patchDocument.Replace("StringProperty", "AnotherStringProperty"); 198var patch = new JsonPatchDocument().Replace("/data/levels/1/items/1/details/1/value", "updated");
IntegrationTests\DictionaryIntegrationTest.cs (3)
90patchDocument.Replace("/DictionaryOfStringToInteger/two", 20); 282patchDocument.Replace($"/DictionaryOfStringToCustomer/{key1}/Name", "James"); 306patchDocument.Replace($"/DictionaryOfStringToInteger/Foo~1Name", 300);
IntegrationTests\ListIntegrationTest.cs (1)
201patchDocument.Replace("IntegerList", new Collection<int>() { 4, 5, 6 });
IntegrationTests\SimpleObjectIntegrationTest.cs (1)
120patchDocument.Replace("GuidValue", newGuid);