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