11 instantiations of Person
Microsoft.AspNetCore.Mvc.Core.Test (11)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (11)
308
var model = new
Person
();
595
var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), new
Person
());
626
.Returns(new
Person
())
920
var model = new
Person
();
942
var model = new
Person
();
1027
var model = new
Person
();
1049
var model = new
Person
();
1073
var model = new
Person
();
1097
var model = new
Person
();
1184
var model = new
Person
();
1204
var model = new
Person
32 references to Person
Microsoft.AspNetCore.Mvc.Core.Test (32)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (32)
27
var bindingContext = CreateContext(GetMetadataForType(typeof(
Person
)));
271
private IActionResult ActionWithComplexParameter(
Person
parameter) => null;
308
var
model = new Person();
329
var
returnedPerson = Assert.IsType<
Person
>(bindingContext.Result.Model);
359
foreach (var property in metadataProvider.GetMetadataForProperties(typeof(
Person
)))
374
Assert.IsType<
Person
>(bindingContext.Result.Model);
515
ModelMetadata = GetMetadataForType(typeof(
Person
))
524
Assert.IsType<
Person
>(model);
595
var bindingContext = CreateContext(GetMetadataForType(typeof(
Person
)), new Person());
618
var bindingContext = CreateContext(GetMetadataForType(typeof(
Person
)), model: null);
634
Assert.IsType<
Person
>(bindingContext.Model);
920
var
model = new Person();
927
var property = GetMetadataForProperty(model.GetType(), nameof(
Person
.ValueTypeRequired));
942
var
model = new Person();
949
var property = GetMetadataForProperty(model.GetType(), nameof(
Person
.ValueTypeRequired));
1027
var
model = new Person();
1030
var metadata = GetMetadataForType(typeof(
Person
));
1040
var
person = Assert.IsType<
Person
>(bindingContext.Model);
1049
var
model = new Person();
1052
var metadata = GetMetadataForType(typeof(
Person
));
1064
var
person = Assert.IsType<
Person
>(bindingContext.Model);
1073
var
model = new Person();
1076
var metadata = GetMetadataForType(typeof(
Person
));
1088
var
person = Assert.IsType<
Person
>(bindingContext.Model);
1097
var
model = new Person();
1100
var metadata = GetMetadataForType(typeof(
Person
));
1184
var
model = new Person();
1204
var
model = new Person