22 references to Operation
Microsoft.AspNetCore.JsonPatch (9)
Microsoft.AspNetCore.JsonPatch.Tests (9)
JsonPatchDocumentJObjectTest.cs (9)
23patch.Operations.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Emails/-", null, "foo@baz.com"));
39patch.Operations.Add(new Operation<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@baz.com"));
40patch.Operations.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
53patch.Operations.Add(new Operation<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@bar.com"));
54patch.Operations.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
119patch.Operations.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, "Foo"));
135patch.Operations.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, null));
151patch.Operations.Add(new Operation<ObjectWithJObject>("replace", "/CustomData/Email", null, "foo@baz.com"));
167patch.Operations.Add(new Operation<ObjectWithJObject>("replace", "/CustomData/Email", null, null));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (4)
JsonPatchExtensionsTest.cs (4)
16var operation = new Operation<Customer>("add", "CustomerId", from: null, value: "TestName");
34var operation = new Operation<Customer>("add", "CustomerId", from: null, value: "TestName");
53patch.Operations.Add(new Operation<Customer>("replace", "/CustomerName", null, "James"));
78patch.Operations.Add(new Operation<Customer>(op, path, from, value));