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