20 references to Add
Microsoft.AspNetCore.JsonPatch.Tests (20)
CustomNamingStrategyTests.cs (1)
26patchDocument.Add("NewInt", 1);
IntegrationTests\AnonymousObjectIntegrationTest.cs (3)
18patchDocument.Add("NewProperty", 4); 42patchDocument.Add("Nested/NewInt", 1); 65patchDocument.Add("StringProperty", "B");
IntegrationTests\DictionaryIntegrationTest.cs (2)
34patchDocument.Add("/DictionaryOfStringToInteger/three", 3); 189patchDocument.Add($"/DictionaryOfStringToCustomer/{key1}/Name", "James");
IntegrationTests\DynamicObjectIntegrationTest.cs (2)
24patchDocument.Add("/Nested/DynamicProperty/InBetweenFirst/InBetweenSecond/StringProperty", "B"); 57patchDocument.Add("DynamicProperty/OtherProperty/IntProperty", 1);
IntegrationTests\ExpandoObjectIntegrationTest.cs (5)
22patchDocument.Add("NewInt", 1); 45patchDocument.Add("DynamicProperty/StringProperty", "B"); 62patchDocument.Add("StringProperty", "B"); 81patchDocument.Add("/InBetweenFirst/InBetweenSecond/StringProperty", "B"); 98patchDocument.Add("stringproperty", "B");
IntegrationTests\HeterogenousCollectionTests.cs (1)
36patchDocument.Add("/Items/-", circleJObject);
IntegrationTests\NestedObjectIntegrationTest.cs (1)
129patchDocument.Add("DynamicProperty/NewInt", 1);
IntegrationTests\SimpleObjectIntegrationTest.cs (1)
140patchDocument.Add("GuidValue", newGuid);
JsonPatchDocumentJsonPropertyAttributeTest.cs (2)
35patchDocument.Add("/First Name.", "John"); 36patchDocument.Add("Last\\Name", "Doe");
JsonPatchDocumentTest.cs (2)
21patchDocument.Add("//NewInt", 1); 39patchDocument.Add("NewInt//", 1);