48 instantiations of JsonPatchDocument
Microsoft.AspNetCore.JsonPatch.Tests (44)
IntegrationTests\ListIntegrationTest.cs (10)
25
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
44
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
65
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
94
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
116
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
181
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
222
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
244
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
329
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
355
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
IntegrationTests\NestedObjectIntegrationTest.cs (13)
26
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObjectWithNullCheck>();
46
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
68
var patchDocument = new
JsonPatchDocument
<NestedObject>();
88
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
110
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
148
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
171
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
194
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
222
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
246
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
266
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
289
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
320
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
JsonPatchDocumentGetPathTest.cs (7)
16
var patchDocument = new
JsonPatchDocument
<SimpleObjectWithNestedObject>();
29
var patchDocument = new
JsonPatchDocument
<int[]>();
42
var patchDocument = new
JsonPatchDocument
<Dictionary<string, int>>();
55
var patchDocument = new
JsonPatchDocument
<SimpleObject>();
68
var patchDocument = new
JsonPatchDocument
<SimpleObject>();
81
var patchDocument = new
JsonPatchDocument
<NestedObjectWithDerivedClass>();
94
var patchDocument = new
JsonPatchDocument
<SimpleObject>();
JsonPatchDocumentJObjectTest.cs (10)
21
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
37
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
51
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
68
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
84
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
100
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
117
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
133
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
149
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
165
var patch = new
JsonPatchDocument
<ObjectWithJObject>();
JsonPatchDocumentJsonPropertyAttributeTest.cs (2)
17
var patchDocument = new
JsonPatchDocument
<JsonPropertyObject>();
48
var patchDocument = new
JsonPatchDocument
<JsonPropertyWithNoPropertyName>();
JsonPatchDocumentTest.cs (2)
81
var patchDocTyped = new
JsonPatchDocument
<SimpleObject>();
111
var patchDocument = new
JsonPatchDocument
<SimpleObject>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (4)
JsonPatchExtensionsTest.cs (4)
17
var patchDoc = new
JsonPatchDocument
<Customer>();
35
var patchDoc = new
JsonPatchDocument
<Customer>();
52
var patch = new
JsonPatchDocument
<Customer>();
77
var patch = new
JsonPatchDocument
<Customer>();
126 references to JsonPatchDocument
FormatterWebSite (1)
Controllers\JsonPatchController.cs (1)
13
public IActionResult PatchProduct([FromBody]
JsonPatchDocument
<Product> patchDoc)
Microsoft.AspNetCore.JsonPatch (48)
JsonPatchDocumentOfT.cs (48)
52
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
53
public
JsonPatchDocument
<TModel> Add<TProp>(Expression<Func<TModel, TProp>> path, TProp value)
73
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
74
public
JsonPatchDocument
<TModel> Add<TProp>(
96
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
97
public
JsonPatchDocument
<TModel> Add<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value)
115
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
116
public
JsonPatchDocument
<TModel> Remove<TProp>(Expression<Func<TModel, TProp>> path)
131
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
132
public
JsonPatchDocument
<TModel> Remove<TProp>(Expression<Func<TModel, IList<TProp>>> path, int position)
149
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
150
public
JsonPatchDocument
<TModel> Remove<TProp>(Expression<Func<TModel, IList<TProp>>> path)
168
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
169
public
JsonPatchDocument
<TModel> Replace<TProp>(Expression<Func<TModel, TProp>> path, TProp value)
189
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
190
public
JsonPatchDocument
<TModel> Replace<TProp>(Expression<Func<TModel, IList<TProp>>> path,
210
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
211
public
JsonPatchDocument
<TModel> Replace<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value)
230
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
231
public
JsonPatchDocument
<TModel> Test<TProp>(Expression<Func<TModel, TProp>> path, TProp value)
251
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
252
public
JsonPatchDocument
<TModel> Test<TProp>(Expression<Func<TModel, IList<TProp>>> path,
272
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
273
public
JsonPatchDocument
<TModel> Test<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value)
292
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
293
public
JsonPatchDocument
<TModel> Move<TProp>(
315
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
316
public
JsonPatchDocument
<TModel> Move<TProp>(
339
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
340
public
JsonPatchDocument
<TModel> Move<TProp>(
364
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
365
public
JsonPatchDocument
<TModel> Move<TProp>(
389
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
390
public
JsonPatchDocument
<TModel> Move<TProp>(
412
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
413
public
JsonPatchDocument
<TModel> Move<TProp>(
434
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
435
public
JsonPatchDocument
<TModel> Copy<TProp>(
457
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
458
public
JsonPatchDocument
<TModel> Copy<TProp>(
481
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
482
public
JsonPatchDocument
<TModel> Copy<TProp>(
506
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
507
public
JsonPatchDocument
<TModel> Copy<TProp>(
531
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
532
public
JsonPatchDocument
<TModel> Copy<TProp>(
554
/// <returns>The <see cref="
JsonPatchDocument
{TModel}"/> for chaining.</returns>
555
public
JsonPatchDocument
<TModel> Copy<TProp>(
Microsoft.AspNetCore.JsonPatch.Tests (53)
IntegrationTests\ListIntegrationTest.cs (10)
25
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
44
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
65
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
94
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
116
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
181
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
222
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
244
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
329
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
355
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
IntegrationTests\NestedObjectIntegrationTest.cs (15)
26
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObjectWithNullCheck>();
46
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
50
var
deserialized = JsonConvert.DeserializeObject<
JsonPatchDocument
<SimpleObjectWithNestedObject>>(serialized);
68
var
patchDocument = new JsonPatchDocument<NestedObject>();
88
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
110
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
148
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
171
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
194
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
222
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
246
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
266
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
289
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
320
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
JsonPatchDocumentGetPathTest.cs (7)
16
var
patchDocument = new JsonPatchDocument<SimpleObjectWithNestedObject>();
29
var
patchDocument = new JsonPatchDocument<int[]>();
42
var
patchDocument = new JsonPatchDocument<Dictionary<string, int>>();
55
var
patchDocument = new JsonPatchDocument<SimpleObject>();
68
var
patchDocument = new JsonPatchDocument<SimpleObject>();
81
var
patchDocument = new JsonPatchDocument<NestedObjectWithDerivedClass>();
94
var
patchDocument = new JsonPatchDocument<SimpleObject>();
JsonPatchDocumentJObjectTest.cs (10)
21
var
patch = new JsonPatchDocument<ObjectWithJObject>();
37
var
patch = new JsonPatchDocument<ObjectWithJObject>();
51
var
patch = new JsonPatchDocument<ObjectWithJObject>();
68
var
patch = new JsonPatchDocument<ObjectWithJObject>();
84
var
patch = new JsonPatchDocument<ObjectWithJObject>();
100
var
patch = new JsonPatchDocument<ObjectWithJObject>();
117
var
patch = new JsonPatchDocument<ObjectWithJObject>();
133
var
patch = new JsonPatchDocument<ObjectWithJObject>();
149
var
patch = new JsonPatchDocument<ObjectWithJObject>();
165
var
patch = new JsonPatchDocument<ObjectWithJObject>();
JsonPatchDocumentJsonPropertyAttributeTest.cs (2)
17
var
patchDocument = new JsonPatchDocument<JsonPropertyObject>();
48
var
patchDocument = new JsonPatchDocument<JsonPropertyWithNoPropertyName>();
JsonPatchDocumentTest.cs (9)
62
var
deserialized = JsonConvert.DeserializeObject<
JsonPatchDocument
<SimpleObject>>(serialized);
81
var
patchDocTyped = new JsonPatchDocument<SimpleObject>();
111
var
patchDocument = new JsonPatchDocument<SimpleObject>();
122
var
deserialized = JsonConvert.DeserializeObject<
JsonPatchDocument
<SimpleObject>>(serialized);
125
Assert.IsType<
JsonPatchDocument
<SimpleObject>>(deserialized);
154
var
deserialized
155
= JsonConvert.DeserializeObject<
JsonPatchDocument
<SimpleObject>>(serialized);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (7)
JsonPatchExtensions.cs (7)
10
/// Extensions for <see cref="
JsonPatchDocument
{T}"/>
17
/// <param name="patchDoc">The <see cref="
JsonPatchDocument
{T}"/>.</param>
18
/// <param name="objectToApplyTo">The entity on which <see cref="
JsonPatchDocument
{T}"/> is applied.</param>
21
this
JsonPatchDocument
<T> patchDoc,
35
/// <param name="patchDoc">The <see cref="
JsonPatchDocument
{T}"/>.</param>
36
/// <param name="objectToApplyTo">The entity on which <see cref="
JsonPatchDocument
{T}"/> is applied.</param>
40
this
JsonPatchDocument
<T> patchDoc,
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (17)
JsonPatchExtensionsTest.cs (4)
17
var
patchDoc = new JsonPatchDocument<Customer>();
35
var
patchDoc = new JsonPatchDocument<Customer>();
52
var
patch = new JsonPatchDocument<Customer>();
77
var
patch = new JsonPatchDocument<Customer>();
NewtonsoftJsonPatchInputFormatterTest.cs (13)
43
var formatterContext = CreateInputFormatterContext(typeof(
JsonPatchDocument
<Customer>), httpContext);
50
var
patchDocument = Assert.IsType<
JsonPatchDocument
<Customer>>(result.Model);
80
var formatterContext = CreateInputFormatterContext(typeof(
JsonPatchDocument
<Customer>), httpContext);
90
var
patchDocument = Assert.IsType<
JsonPatchDocument
<Customer>>(result.Model);
113
var formatterContext = CreateInputFormatterContext(typeof(
JsonPatchDocument
<Customer>), httpContext);
120
var
patchDocument = Assert.IsType<
JsonPatchDocument
<Customer>>(result.Model);
137
var formatterContext = CreateInputFormatterContext(typeof(
JsonPatchDocument
<Customer>), httpContext);
144
var
patchDocument = Assert.IsType<
JsonPatchDocument
<Customer>>(result.Model);
166
var formatterContext = CreateInputFormatterContext(typeof(
JsonPatchDocument
<Customer>), httpContext);