2 instantiations of Person
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\BinderTypeModelBinderTest.cs (2)
34
var model = new
Person
();
109
_model = new
Person
();
9 references to Person
Microsoft.AspNetCore.Mvc.Core.Test (9)
ModelBinding\Binders\BinderTypeModelBinderTest.cs (9)
17
var bindingContext = GetBindingContext(typeof(
Person
), binderType: typeof(NullModelBinder));
32
var bindingContext = GetBindingContext(typeof(
Person
), binderType: typeof(NotNullModelBinder));
34
var
model = new Person();
47
var
person = (
Person
)bindingContext.Result.Model;
56
var bindingContext = GetBindingContext(typeof(
Person
), binderType: typeof(
Person
));
58
var expected = $"The type '{typeof(
Person
).FullName}' must implement " +
63
() => new BinderTypeModelBinder(typeof(
Person
)),