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