10 references to TestModelBinderProvider
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (10)
443elementSelector: item => (IModelBinder)new TestModelBinderProvider(item, ModelBindingResult.Success("Test")));
605var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Failed());
669var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Failed());
708var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Success(model: null));
740var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Failed());
763var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Failed());
788var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Failed());
813var propertyBinder = new TestModelBinderProvider(property, ModelBindingResult.Success(model: 57));
845options.ModelBinderProviders.Insert(0, new TestModelBinderProvider(firstNameProperty, ModelBindingResult.Success("John")));
848options.ModelBinderProviders.Insert(0, new TestModelBinderProvider(lastNameProperty, ModelBindingResult.Success("Doe")));