1 instantiation of MyModelTestingCanUpdateProperty
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1139
var model = new
MyModelTestingCanUpdateProperty
();
11 references to MyModelTestingCanUpdateProperty
Microsoft.AspNetCore.Mvc.Core.Test (11)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (11)
471
[InlineData(nameof(
MyModelTestingCanUpdateProperty
.ReadOnlyInt), false)] // read-only value type
472
[InlineData(nameof(
MyModelTestingCanUpdateProperty
.ReadOnlyObject), true)]
473
[InlineData(nameof(
MyModelTestingCanUpdateProperty
.ReadOnlySimple), true)]
474
[InlineData(nameof(
MyModelTestingCanUpdateProperty
.ReadOnlyString), false)]
475
[InlineData(nameof(
MyModelTestingCanUpdateProperty
.ReadWriteString), true)]
480
var propertyMetadata = GetMetadataForProperty(typeof(
MyModelTestingCanUpdateProperty
), propertyName);
1121
nameof(
MyModelTestingCanUpdateProperty
.ReadOnlyObject),
1122
model => ((Simple)((
MyModelTestingCanUpdateProperty
)model).ReadOnlyObject).Name
1125
nameof(
MyModelTestingCanUpdateProperty
.ReadOnlySimple),
1126
model => ((
MyModelTestingCanUpdateProperty
)model).ReadOnlySimple.Name
1139
var
model = new MyModelTestingCanUpdateProperty();