9 references to Replace
Microsoft.AspNetCore.JsonPatch.Tests (9)
CustomNamingStrategyTests.cs (1)
128patchDocument.Replace("Test", 2);
IntegrationTests\AnonymousObjectIntegrationTest.cs (1)
112patchDocument.Replace("StringProperty", "AnotherStringProperty");
IntegrationTests\DictionaryIntegrationTest.cs (3)
90patchDocument.Replace("/DictionaryOfStringToInteger/two", 20); 282patchDocument.Replace($"/DictionaryOfStringToCustomer/{key1}/Name", "James"); 306patchDocument.Replace($"/DictionaryOfStringToInteger/Foo~1Name", 300);
IntegrationTests\DynamicObjectIntegrationTest.cs (1)
186patchDocument.Replace("SimpleObject", newObject);
IntegrationTests\ExpandoObjectIntegrationTest.cs (1)
372patchDocument.Replace("GuidValue", newGuid);
IntegrationTests\ListIntegrationTest.cs (1)
201patchDocument.Replace("IntegerList", new Collection<int>() { 4, 5, 6 });
IntegrationTests\SimpleObjectIntegrationTest.cs (1)
120patchDocument.Replace("GuidValue", newGuid);