1 type derived from SimpleObject
Microsoft.AspNetCore.JsonPatch.Tests (1)
TestObjectModels\InheritedObject.cs (1)
6
public class InheritedObject :
SimpleObject
48 instantiations of SimpleObject
Microsoft.AspNetCore.JsonPatch.Tests (48)
IntegrationTests\DynamicObjectIntegrationTest.cs (5)
113
dynamicTestObject.SimpleObject = new
SimpleObject
() { AnotherStringProperty = "B" };
151
dynamicTestObject.SimpleObject = new
SimpleObject
()
174
dynamicTestObject.SimpleObject = new
SimpleObject
()
180
var newObject = new
SimpleObject
()
216
dynamicTestObject.Nested = new
SimpleObject
()
IntegrationTests\ListIntegrationTest.cs (19)
19
SimpleObject = new
SimpleObject
()
38
SimpleObject = new
SimpleObject
()
59
SimpleObject = new
SimpleObject
()
83
new
SimpleObject
87
new
SimpleObject
110
SimpleObject = new
SimpleObject
()
130
var targetObject = new
SimpleObject
()
151
var targetObject = new
SimpleObject
()
175
SimpleObject = new
SimpleObject
()
195
var targetObject = new
SimpleObject
()
216
SimpleObject = new
SimpleObject
()
238
SimpleObject = new
SimpleObject
()
258
var targetObject = new
SimpleObject
()
277
var targetObject = new
SimpleObject
()
296
var targetObject = new
SimpleObject
()
317
var simpleObject1 = new
SimpleObject
() { IntegerValue = 1 };
318
var simpleObject2 = new
SimpleObject
() { IntegerValue = 2 };
319
var simpleObject3 = new
SimpleObject
() { IntegerValue = 3 };
349
SimpleObject = new
SimpleObject
()
IntegrationTests\NestedObjectIntegrationTest.cs (9)
104
SimpleObject = new
SimpleObject
()
142
SimpleObject = new
SimpleObject
()
164
SimpleObject = new
SimpleObject
()
187
SimpleObject = new
SimpleObject
()
210
SimpleObject = new
SimpleObject
()
242
SimpleObject = new
SimpleObject
(),
262
SimpleObject = new
SimpleObject
(),
282
SimpleObject = new
SimpleObject
()
304
var sDto = new
SimpleObject
()
IntegrationTests\SimpleObjectIntegrationTest.cs (7)
17
var targetObject = new
SimpleObject
()
33
var targetObject = new
SimpleObject
()
53
var targetObject = new
SimpleObject
()
73
var targetObject = new
SimpleObject
()
94
var targetObject = new
SimpleObject
()
113
var targetObject = new
SimpleObject
()
133
var targetObject = new
SimpleObject
()
Internal\ListAdapterTest.cs (4)
162
var sDto = new
SimpleObject
();
250
var sDto1 = new
SimpleObject
();
251
var sDto2 = new
SimpleObject
();
252
var sDto3 = new
SimpleObject
();
JsonPatchDocumentTest.cs (3)
52
var targetObject = new
SimpleObject
()
75
var targetObject = new
SimpleObject
()
102
var doc = new
SimpleObject
()
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
25
SimpleObject = new
SimpleObject
();
52 references to SimpleObject
Microsoft.AspNetCore.JsonPatch.Tests (52)
IntegrationTests\DynamicObjectIntegrationTest.cs (1)
180
var
newObject = new SimpleObject()
IntegrationTests\ListIntegrationTest.cs (12)
81
SimpleObjectList = new List<
SimpleObject
>()
130
var
targetObject = new SimpleObject()
151
var
targetObject = new SimpleObject()
195
var
targetObject = new SimpleObject()
258
var
targetObject = new SimpleObject()
277
var
targetObject = new SimpleObject()
296
var
targetObject = new SimpleObject()
317
var
simpleObject1 = new SimpleObject() { IntegerValue = 1 };
318
var
simpleObject2 = new SimpleObject() { IntegerValue = 2 };
319
var
simpleObject3 = new SimpleObject() { IntegerValue = 3 };
322
SimpleObjectList = new List<
SimpleObject
>() {
336
Assert.Equal(new List<
SimpleObject
>() { simpleObject2, simpleObject1, simpleObject3 }, targetObject.SimpleObjectList);
IntegrationTests\NestedObjectIntegrationTest.cs (1)
304
var
sDto = new SimpleObject()
IntegrationTests\SimpleObjectIntegrationTest.cs (7)
17
var
targetObject = new SimpleObject()
33
var
targetObject = new SimpleObject()
53
var
targetObject = new SimpleObject()
73
var
targetObject = new SimpleObject()
94
var
targetObject = new SimpleObject()
113
var
targetObject = new SimpleObject()
133
var
targetObject = new SimpleObject()
Internal\ListAdapterTest.cs (14)
162
var
sDto = new SimpleObject();
165
var targetObject = new List<
SimpleObject
>() { sDto };
175
Assert.Equal(new List<
SimpleObject
>() { sDto, iDto }, targetObject);
250
var
sDto1 = new SimpleObject();
251
var
sDto2 = new SimpleObject();
252
var
sDto3 = new SimpleObject();
256
new List<
SimpleObject
>() { },
259
new List<
SimpleObject
>() { sDto1 }
262
new List<
SimpleObject
>() { sDto1, sDto2 },
265
new List<
SimpleObject
>() { sDto1, sDto2, sDto3 }
268
new List<
SimpleObject
>() { sDto1, sDto2 },
271
new List<
SimpleObject
>() { sDto3, sDto1, sDto2 }
274
new List<
SimpleObject
>() { sDto1, sDto2 },
277
new List<
SimpleObject
>() { sDto1, sDto3, sDto2 }
JsonPatchDocumentGetPathTest.cs (3)
55
var patchDocument = new JsonPatchDocument<
SimpleObject
>();
68
var patchDocument = new JsonPatchDocument<
SimpleObject
>();
94
var patchDocument = new JsonPatchDocument<
SimpleObject
>();
JsonPatchDocumentTest.cs (9)
52
var
targetObject = new SimpleObject()
62
var deserialized = JsonConvert.DeserializeObject<JsonPatchDocument<
SimpleObject
>>(serialized);
75
var
targetObject = new SimpleObject()
81
var patchDocTyped = new JsonPatchDocument<
SimpleObject
>();
102
var
doc = new SimpleObject()
111
var patchDocument = new JsonPatchDocument<
SimpleObject
>();
122
var deserialized = JsonConvert.DeserializeObject<JsonPatchDocument<
SimpleObject
>>(serialized);
125
Assert.IsType<JsonPatchDocument<
SimpleObject
>>(deserialized);
155
= JsonConvert.DeserializeObject<JsonPatchDocument<
SimpleObject
>>(serialized);
TestObjectModels\SimpleObject.cs (1)
11
public List<
SimpleObject
> SimpleObjectList { get; set; }
TestObjectModels\SimpleObjectWithNestedObject.cs (4)
14
public
SimpleObject
SimpleObject { get; set; }
18
public List<
SimpleObject
> SimpleObjectList { get; set; }
20
public IList<
SimpleObject
> SimpleObjectIList { get; set; }
27
SimpleObjectList = new List<
SimpleObject
>();