1 interface inheriting from IModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ICollectionModelBinder.cs (1)
11public interface ICollectionModelBinder : IModelBinder
43 implementations of IModelBinder
BasicWebSite (2)
Controllers\BindPropertiesController.cs (1)
27private class CustomBoundModelBinder : IModelBinder
Controllers\ContactApiController.cs (1)
143private class TestModelBinder : IModelBinder
FormatterWebSite (1)
PolymorphicBinder.cs (1)
9public class PolymorphicBinder : IModelBinder
Microsoft.AspNetCore.Mvc.Core (20)
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
15public class BinderTypeModelBinder : IModelBinder
ModelBinding\Binders\BodyModelBinder.cs (1)
20public partial class BodyModelBinder : IModelBinder
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
13public class ByteArrayModelBinder : IModelBinder
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
13public class CancellationTokenModelBinder : IModelBinder
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
18public sealed partial class ComplexObjectModelBinder : IModelBinder
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
19public partial class ComplexTypeModelBinder : IModelBinder
ModelBinding\Binders\DateTimeModelBinder.cs (1)
14public class DateTimeModelBinder : IModelBinder
ModelBinding\Binders\DecimalModelBinder.cs (1)
16public class DecimalModelBinder : IModelBinder
ModelBinding\Binders\DoubleModelBinder.cs (1)
16public class DoubleModelBinder : IModelBinder
ModelBinding\Binders\FloatModelBinder.cs (1)
16public class FloatModelBinder : IModelBinder
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
17public class FormCollectionModelBinder : IModelBinder
ModelBinding\Binders\FormFileModelBinder.cs (1)
18public partial class FormFileModelBinder : IModelBinder
ModelBinding\Binders\HeaderModelBinder.cs (1)
17public class HeaderModelBinder : IModelBinder
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
11internal class KeyedServicesModelBinder : IModelBinder
ModelBinding\Binders\KeyValuePairModelBinder.cs (1)
15public class KeyValuePairModelBinder<TKey, TValue> : IModelBinder
ModelBinding\Binders\ServicesModelBinder.cs (1)
15public class ServicesModelBinder : IModelBinder
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
15public class SimpleTypeModelBinder : IModelBinder
ModelBinding\Binders\TryParseModelBinder.cs (1)
15internal sealed class TryParseModelBinder : IModelBinder
ModelBinding\NoOpBinder.cs (1)
8internal sealed class NoOpBinder : IModelBinder
ModelBinding\PlaceholderBinder.cs (1)
14internal sealed class PlaceholderBinder : IModelBinder
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
1151private class TestModelBinder : IModelBinder
ModelBinding\Binders\BinderTypeModelBinderProviderTest.cs (1)
46private class NullModelBinder : IModelBinder
ModelBinding\Binders\BinderTypeModelBinderTest.cs (2)
95private class NullModelBinder : IModelBinder 103private class NotNullModelBinder : IModelBinder
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
627private class TestModelBinderProvider : IModelBinderProvider, IModelBinder
ModelBinding\DefaultModelBindingContextTest.cs (1)
184private class TestModelBinder : IModelBinder
ModelBinding\ModelBinderFactoryTest.cs (2)
651private class WidgetBinder : IModelBinder 663private class WidgetIdBinder : IModelBinder
ModelBinding\StubModelBinder.cs (1)
8public class StubModelBinder : IModelBinder
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
BinderTypeBasedModelBinderIntegrationTest.cs (5)
316private class AddressModelBinder : IModelBinder 341private class Address3ModelBinder : IModelBinder 366private class SuccessModelBinder : IModelBinder 384private class NullModelBinder : IModelBinder 396private class NullModelNotSetModelBinder : IModelBinder
ComplexRecordIntegrationTest.cs (1)
3023private class NumberModelBinder : IModelBinder
ComplexTypeIntegrationTestBase.cs (1)
3238private class NumberModelBinder : IModelBinder
GenericModelBinderIntegrationTest.cs (1)
164private class AddressBinder : IModelBinder
SuccessfulModelBinder.cs (1)
11public class SuccessfulModelBinder : IModelBinder
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (1)
212public class CustomBinder : IModelBinder
RazorPagesWebSite (1)
PolymorphicModelBinder.cs (1)
9public class PolymorphicModelBinder : IModelBinder
575 references to IModelBinder
Microsoft.AspNetCore.Mvc.Abstractions (22)
ModelBinding\BindingInfo.cs (4)
53/// Gets or sets the <see cref="Type"/> of the <see cref="IModelBinder"/> implementation used to bind the 57/// Also set <see cref="BindingSource"/> if the specified <see cref="IModelBinder"/> implementation does not 65if (value != null && !typeof(IModelBinder).IsAssignableFrom(value)) 70typeof(IModelBinder).FullName),
ModelBinding\BindingSource.cs (2)
147/// Set <see cref="IsGreedy"/> to <c>true</c> for most custom <see cref="IModelBinder"/> implementations. 150/// If a source represents an <see cref="IModelBinder"/> which will recursively traverse a model's properties
ModelBinding\IBinderTypeProviderMetadata.cs (2)
7/// Provides a <see cref="Type"/> which implements <see cref="IModelBinder"/>. 12/// A <see cref="Type"/> which implements either <see cref="IModelBinder"/>.
ModelBinding\IModelBinderProvider.cs (4)
7/// Creates <see cref="IModelBinder"/> instances. Register <see cref="IModelBinderProvider"/> 13/// Creates a <see cref="IModelBinder"/> based on <see cref="ModelBinderProviderContext"/>. 16/// <returns>An <see cref="IModelBinder"/>.</returns> 17IModelBinder? GetBinder(ModelBinderProviderContext context);
ModelBinding\ModelBinderProviderContext.cs (6)
12/// Creates an <see cref="IModelBinder"/> for the given <paramref name="metadata"/>. 15/// <returns>An <see cref="IModelBinder"/>.</returns> 16public abstract IModelBinder CreateBinder(ModelMetadata metadata); 19/// Creates an <see cref="IModelBinder"/> for the given <paramref name="metadata"/> 25/// <returns>An <see cref="IModelBinder"/>.</returns> 26public virtual IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo)
ModelBinding\ModelBindingContext.cs (3)
117/// Before an <see cref="IModelBinder"/> is called, <see cref="Result"/> will be set to a value indicating 125/// Pushes a layer of state onto this context. <see cref="IModelBinder"/> implementations will call this as 145/// Pushes a layer of state onto this context. <see cref="IModelBinder"/> implementations will call this as
ModelBinding\ModelMetadata.cs (1)
206/// Gets the <see cref="Type"/> of an <see cref="IModelBinder"/> of a model if specified explicitly using
Microsoft.AspNetCore.Mvc.Core (164)
BindPropertyAttribute.cs (4)
11/// An attribute that can specify a model name or type of <see cref="IModelBinder"/> to use for binding the 39/// correct for the specified (non-<see langword="null"/>) <see cref="IModelBinder"/> implementation. 46if (value != null && !typeof(IModelBinder).IsAssignableFrom(value)) 51typeof(IModelBinder).FullName),
Controllers\ControllerBinderDelegateProvider.cs (4)
149var binder = modelBinderFactory.CreateBinder(new ModelBinderFactoryContext 179var binder = modelBinderFactory.CreateBinder(new ModelBinderFactoryContext 194public BinderItem(IModelBinder modelBinder, ModelMetadata modelMetadata) 200public IModelBinder ModelBinder { get; }
ModelBinderAttribute.cs (5)
10/// An attribute that can specify a model name or type of <see cref="IModelBinder"/> to use for binding. 42/// <param name="binderType">A <see cref="Type"/> which implements <see cref="IModelBinder"/>.</param> 57/// correct for the specified (non-<see langword="null"/>) <see cref="IModelBinder"/> implementation. 64if (value != null && !typeof(IModelBinder).IsAssignableFrom(value)) 69typeof(IModelBinder).FullName),
ModelBinderOfTAttribute.cs (2)
9/// <typeparam name="TBinder">A <see cref="Type"/> which implements <see cref="IModelBinder"/>.</typeparam> 14public class ModelBinderAttribute<TBinder> : ModelBinderAttribute where TBinder : IModelBinder
ModelBinding\Binders\ArrayModelBinder.cs (7)
13/// <see cref="IModelBinder"/> implementation for binding array values. 22/// The <see cref="IModelBinder"/> for binding <typeparamref name="TElement"/>. 25public ArrayModelBinder(IModelBinder elementBinder, ILoggerFactory loggerFactory) 34/// The <see cref="IModelBinder"/> for binding <typeparamref name="TElement"/>. 48IModelBinder elementBinder, 59/// The <see cref="IModelBinder"/> for binding <typeparamref name="TElement"/>. 77IModelBinder elementBinder,
ModelBinding\Binders\ArrayModelBinderProvider.cs (3)
18public IModelBinder? GetBinder(ModelBinderProviderContext context) 26var elementBinder = context.CreateBinder(context.Metadata.ElementMetadata); 30return (IModelBinder)Activator.CreateInstance(
ModelBinding\Binders\BinderTypeModelBinder.cs (7)
12/// An <see cref="IModelBinder"/> for models which specify an <see cref="IModelBinder"/> using 22/// <param name="binderType">The <see cref="Type"/> of the <see cref="IModelBinder"/>.</param> 27if (!typeof(IModelBinder).IsAssignableFrom(binderType)) 32typeof(IModelBinder).FullName), 45var binder = (IModelBinder)_factory(requestServices, arguments: null);
ModelBinding\Binders\BinderTypeModelBinderProvider.cs (2)
9/// An <see cref="IModelBinderProvider"/> for models which specify an <see cref="IModelBinder"/> 15public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\BodyModelBinder.cs (1)
17/// An <see cref="IModelBinder"/> which binds models from the request body using an <see cref="IInputFormatter"/>
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
68public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\ByteArrayModelBinderProvider.cs (1)
17public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
11/// <see cref="IModelBinder"/> implementation to bind models of type <see cref="CancellationToken"/>.
ModelBinding\Binders\CancellationTokenModelBinderProvider.cs (1)
18public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\CollectionModelBinder.cs (9)
19/// <see cref="IModelBinder"/> implementation for binding collection values. 32/// The <see cref="IModelBinder"/> for binding <typeparamref name="TElement"/>. 35public CollectionModelBinder(IModelBinder elementBinder, ILoggerFactory loggerFactory) 44/// The <see cref="IModelBinder"/> for binding <typeparamref name="TElement"/>. 53IModelBinder elementBinder, 69/// The <see cref="IModelBinder"/> for binding <typeparamref name="TElement"/>. 80IModelBinder elementBinder, 95/// Gets the <see cref="IModelBinder"/> instances for binding collection elements. 97protected IModelBinder ElementBinder { get; }
ModelBinding\Binders\CollectionModelBinderProvider.cs (5)
19public IModelBinder? GetBinder(ModelBinderProviderContext context) 54private static IModelBinder CreateInstance(ModelBinderProviderContext context, Type collectionType) 58var elementBinder = context.CreateBinder(context.MetadataProvider.GetMetadataForType(elementType)); 62var binder = (IModelBinder)Activator.CreateInstance(
ModelBinding\Binders\ComplexObjectModelBinder.cs (11)
16/// <see cref="IModelBinder"/> implementation for binding complex types. 33private readonly IDictionary<ModelMetadata, IModelBinder> _propertyBinders; 34private readonly IReadOnlyList<IModelBinder> _parameterBinders; 39IDictionary<ModelMetadata, IModelBinder> propertyBinders, 40IReadOnlyList<IModelBinder> parameterBinders, 249var parameterBinder = _parameterBinders[i]; 300var parameterBinder = _parameterBinders[i]; 341var propertyBinder = _propertyBinders[property]; 392var propertyBinder = _propertyBinders[property]; 436IModelBinder propertyBinder, 481IModelBinder parameterBinder,
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (6)
17public IModelBinder? GetBinder(ModelBinderProviderContext context) 28var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>(); 41private static IReadOnlyList<IModelBinder> GetParameterBinders(ModelBinderProviderContext context) 46return Array.Empty<IModelBinder>(); 50Array.Empty<IModelBinder>() : 51new IModelBinder[boundConstructor.BoundConstructorParameters.Count];
ModelBinding\Binders\ComplexTypeModelBinder.cs (5)
16/// <see cref="IModelBinder"/> implementation for binding complex types. 34private readonly IDictionary<ModelMetadata, IModelBinder> _propertyBinders; 46IDictionary<ModelMetadata, IModelBinder> propertyBinders, 66IDictionary<ModelMetadata, IModelBinder> propertyBinders, 308var binder = _propertyBinders[bindingContext.ModelMetadata];
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (2)
18public IModelBinder GetBinder(ModelBinderProviderContext context) 24var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\DateTimeModelBinder.cs (1)
12/// An <see cref="IModelBinder"/> for <see cref="DateTime"/> and nullable <see cref="DateTime"/> models.
ModelBinding\Binders\DateTimeModelBinderProvider.cs (1)
20public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\DecimalModelBinder.cs (1)
13/// An <see cref="IModelBinder"/> for <see cref="decimal"/> and <see cref="Nullable{T}"/> where <c>T</c> is
ModelBinding\Binders\DictionaryModelBinder.cs (14)
14/// <see cref="IModelBinder"/> implementation for binding dictionary values. 20private readonly IModelBinder _valueBinder; 25/// <param name="keyBinder">The <see cref="IModelBinder"/> for <typeparamref name="TKey"/>.</param> 26/// <param name="valueBinder">The <see cref="IModelBinder"/> for <typeparamref name="TValue"/>.</param> 28public DictionaryModelBinder(IModelBinder keyBinder, IModelBinder valueBinder, ILoggerFactory loggerFactory) 39/// <param name="keyBinder">The <see cref="IModelBinder"/> for <typeparamref name="TKey"/>.</param> 40/// <param name="valueBinder">The <see cref="IModelBinder"/> for <typeparamref name="TValue"/>.</param> 55IModelBinder keyBinder, 56IModelBinder valueBinder, 73/// <param name="keyBinder">The <see cref="IModelBinder"/> for <typeparamref name="TKey"/>.</param> 74/// <param name="valueBinder">The <see cref="IModelBinder"/> for <typeparamref name="TValue"/>.</param> 93IModelBinder keyBinder, 94IModelBinder valueBinder,
ModelBinding\Binders\DictionaryModelBinderProvider.cs (4)
19public IModelBinder? GetBinder(ModelBinderProviderContext context) 30var keyBinder = context.CreateBinder(context.MetadataProvider.GetMetadataForType(keyType)); 33var valueBinder = context.CreateBinder(context.MetadataProvider.GetMetadataForType(valueType)); 37return (IModelBinder)Activator.CreateInstance(
ModelBinding\Binders\DoubleModelBinder.cs (1)
13/// An <see cref="IModelBinder"/> for <see cref="double"/> and <see cref="Nullable{T}"/> where <c>T</c> is
ModelBinding\Binders\EnumTypeModelBinder.cs (1)
12/// <see cref="IModelBinder"/> implementation to bind models for types deriving from <see cref="Enum"/>.
ModelBinding\Binders\EnumTypeModelBinderProvider.cs (1)
26public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\FloatingPointTypeModelBinderProvider.cs (1)
23public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\FloatModelBinder.cs (1)
13/// An <see cref="IModelBinder"/> for <see cref="float"/> and <see cref="Nullable{T}"/> where <c>T</c> is
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
15/// <see cref="IModelBinder"/> implementation to bind form values to <see cref="IFormCollection"/>.
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
19public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\FormFileModelBinder.cs (1)
16/// <see cref="IModelBinder"/> implementation to bind posted files to <see cref="IFormFile"/>.
ModelBinding\Binders\FormFileModelBinderProvider.cs (1)
19public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\HeaderModelBinder.cs (4)
14/// An <see cref="IModelBinder"/> which binds models from the request headers when a model 34/// <param name="innerModelBinder">The <see cref="IModelBinder"/> which does the actual 36public HeaderModelBinder(ILoggerFactory loggerFactory, IModelBinder innerModelBinder) 46internal IModelBinder? InnerModelBinder { get; }
ModelBinding\Binders\HeaderModelBinderProvider.cs (2)
17public IModelBinder? GetBinder(ModelBinderProviderContext context) 46var innerModelBinder = context.CreateBinder(
ModelBinding\Binders\KeyValuePairModelBinder.cs (8)
11/// An <see cref="IModelBinder"/> for <see cref="KeyValuePair{TKey, TValue}"/>. 17private readonly IModelBinder _keyBinder; 18private readonly IModelBinder _valueBinder; 24/// <param name="keyBinder">The <see cref="IModelBinder"/> for <typeparamref name="TKey"/>.</param> 25/// <param name="valueBinder">The <see cref="IModelBinder"/> for <typeparamref name="TValue"/>.</param> 27public KeyValuePairModelBinder(IModelBinder keyBinder, IModelBinder valueBinder, ILoggerFactory loggerFactory) 92IModelBinder binder,
ModelBinding\Binders\KeyValuePairModelBinderProvider.cs (4)
17public IModelBinder? GetBinder(ModelBinderProviderContext context) 28var keyBinder = context.CreateBinder(keyMetadata); 31var valueBinder = context.CreateBinder(valueMetadata); 35return (IModelBinder)Activator.CreateInstance(binderType, keyBinder, valueBinder, loggerFactory)!;
ModelBinding\Binders\ServicesModelBinder.cs (1)
12/// An <see cref="IModelBinder"/> which binds models from the request services when a model
ModelBinding\Binders\ServicesModelBinderProvider.cs (1)
19public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
13/// An <see cref="IModelBinder"/> for simple types.
ModelBinding\Binders\SimpleTypeModelBinderProvider.cs (1)
17public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\TryParseModelBinder.cs (1)
13/// An <see cref="IModelBinder"/> for simple types.
ModelBinding\Binders\TryParseModelBinderProvider.cs (1)
15public IModelBinder? GetBinder(ModelBinderProviderContext context)
ModelBinding\IModelBinderFactory.cs (4)
9/// A factory abstraction for creating <see cref="IModelBinder"/> instances. 14/// Creates a new <see cref="IModelBinder"/>. 17/// <returns>An <see cref="IModelBinder"/> instance.</returns> 18IModelBinder CreateBinder(ModelBinderFactoryContext context);
ModelBinding\Metadata\BindingMetadata.cs (4)
33/// Gets or sets the <see cref="Type"/> of the <see cref="IModelBinder"/> implementation used to bind the 37/// Also set <see cref="BindingSource"/> if the specified <see cref="IModelBinder"/> implementation does not 45if (value != null && !typeof(IModelBinder).IsAssignableFrom(value)) 50typeof(IModelBinder).FullName),
ModelBinding\ModelBinderFactory.cs (16)
20/// A factory for <see cref="IModelBinder"/> instances. 26private readonly ConcurrentDictionary<Key, IModelBinder> _cache; 43_cache = new ConcurrentDictionary<Key, IModelBinder>(); 51public IModelBinder CreateBinder(ModelBinderFactoryContext context) 63if (TryGetCachedBinder(context.Metadata, context.CacheToken, out var binder)) 87private IModelBinder CreateBinderCoreCached(DefaultModelBinderProviderContext providerContext, object? token) 89if (TryGetCachedBinder(providerContext.Metadata, token, out var binder)) 106private IModelBinder? CreateBinderCoreUncached(DefaultModelBinderProviderContext providerContext, object? token) 127if (visited.TryGetValue(key, out var binder)) 146IModelBinder? result = null; 174private void AddToCache(ModelMetadata metadata, object? cacheToken, IModelBinder binder) 187private bool TryGetCachedBinder(ModelMetadata metadata, object? cacheToken, [NotNullWhen(true)] out IModelBinder? binder) 224Visited = new Dictionary<Key, IModelBinder?>(); 246public Dictionary<Key, IModelBinder?> Visited { get; } 250public override IModelBinder CreateBinder(ModelMetadata metadata) 258public override IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo)
ModelBinding\ModelBinderFactoryContext.cs (1)
24/// Gets or sets the cache token. If <c>non-null</c> the resulting <see cref="IModelBinder"/>
ModelBinding\ModelBindingHelper.cs (1)
267var binder = modelBinderFactory.CreateBinder(factoryContext);
ModelBinding\NoOpBinder.cs (1)
10public static readonly IModelBinder Instance = new NoOpBinder();
ModelBinding\ParameterBinder.cs (4)
58/// <param name="modelBinder">The <see cref="IModelBinder"/>.</param> 66IModelBinder modelBinder, 77/// <param name="modelBinder">The <see cref="IModelBinder"/>.</param> 86IModelBinder modelBinder,
ModelBinding\PlaceholderBinder.cs (1)
16public IModelBinder? Inner { get; set; }
MvcOptions.cs (1)
327/// this number of <see cref="IModelBinder"/>s are on the stack. That is, an attempt to recurse beyond this
Microsoft.AspNetCore.Mvc.Core.Test (242)
ControllerBaseTest.cs (1)
3194private static ControllerBase GetController(IModelBinder binder, IValueProvider valueProvider = null)
Controllers\ControllerBinderDelegateProviderTest.cs (13)
45var binder = new Mock<IModelBinder>(); 99var binder = new Mock<IModelBinder>(); 152var binder = new Mock<IModelBinder>(); 194var binder = new Mock<IModelBinder>(); 239var binder = new Mock<IModelBinder>(); 289var mockBinder = new Mock<IModelBinder>(); 338var mockBinder = new Mock<IModelBinder>(); 438var binder = new Mock<IModelBinder>(); 581var binder = new Mock<IModelBinder>(); 1145It.IsAny<IModelBinder>(), 1151.Returns((ActionContext context, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor descriptor, ModelMetadata metadata, object v, object c) => 1303var binder = new Mock<IModelBinder>(); 1315private static ModelBinderFactory GetModelBinderFactory(IModelBinder binder)
ModelBinding\Binders\ArrayModelBinderProviderTest.cs (7)
21var result = provider.GetBinder(context); 41return Mock.Of<IModelBinder>(); 45var result = provider.GetBinder(context); 61return Mock.Of<IModelBinder>(); 65var result = provider.GetBinder(context); 91return Mock.Of<IModelBinder>(); 95var result = provider.GetBinder(context);
ModelBinding\Binders\BinderTypeModelBinderProviderTest.cs (2)
17var result = provider.GetBinder(context); 33var result = provider.GetBinder(context);
ModelBinding\Binders\BinderTypeModelBinderTest.cs (2)
36.AddSingleton<IModelBinder, NullModelBinder>() 59$"'{typeof(IModelBinder).FullName}' to be used as a model binder.";
ModelBinding\Binders\BodyModelBinderProviderTest.cs (2)
35var result = provider.GetBinder(context); 65var result = provider.GetBinder(context);
ModelBinding\Binders\ByteArrayModelBinderProviderTest.cs (2)
20var result = provider.GetBinder(context); 34var result = provider.GetBinder(context);
ModelBinding\Binders\CancellationTokenModelBinderProviderTest.cs (2)
20var result = provider.GetBinder(context); 34var result = provider.GetBinder(context);
ModelBinding\Binders\CollectionModelBinderProviderTest.cs (5)
24var result = provider.GetBinder(context); 55return Mock.Of<IModelBinder>(); 59var result = provider.GetBinder(context); 76return Mock.Of<IModelBinder>(); 80var result = provider.GetBinder(context);
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
497private static IModelBinder CreateIntBinder()
ModelBinding\Binders\ComplexObjectModelBinderProviderTest.cs (5)
22var result = provider.GetBinder(context); 39return Mock.Of<IModelBinder>(); 49var result = provider.GetBinder(context); 66return Mock.Of<IModelBinder>(); 76var result = provider.GetBinder(context);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
298var binders = new Dictionary<ModelMetadata, IModelBinder>(); 306Array.Empty<IModelBinder>(), 349new Dictionary<ModelMetadata, IModelBinder>(), 350Array.Empty<IModelBinder>(), 393new Dictionary<ModelMetadata, IModelBinder>(), 394Array.Empty<IModelBinder>(), 443elementSelector: item => (IModelBinder)new TestModelBinderProvider(item, ModelBindingResult.Success("Test"))); 447Array.Empty<IModelBinder>(), 644public IModelBinder GetBinder(ModelBinderProviderContext context)
ModelBinding\Binders\ComplexTypeModelBinderProviderTest.cs (5)
22var result = provider.GetBinder(context); 39return Mock.Of<IModelBinder>(); 49var result = provider.GetBinder(context); 66return Mock.Of<IModelBinder>(); 76var result = provider.GetBinder(context);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (11)
358var binders = new Dictionary<ModelMetadata, IModelBinder>(); 409new Dictionary<ModelMetadata, IModelBinder>(), 453new Dictionary<ModelMetadata, IModelBinder>(), 599elementSelector: item => (IModelBinder)null); 621elementSelector: item => (IModelBinder)null); 1582public IModelBinder GetBinder(ModelBinderProviderContext context) 1586var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>(); 1603: this(new Dictionary<ModelMetadata, IModelBinder>()) 1608: this(new Dictionary<ModelMetadata, IModelBinder>(), allowValidatingTopLevelNodes) 1612public TestableComplexTypeModelBinder(IDictionary<ModelMetadata, IModelBinder> propertyBinders) 1618IDictionary<ModelMetadata, IModelBinder> propertyBinders,
ModelBinding\Binders\DateTimeModelBinderProviderTest.cs (3)
21var result = _provider.GetBinder(context); 34var result = _provider.GetBinder(context); 47var result = _provider.GetBinder(context);
ModelBinding\Binders\DateTimeModelBinderTest.cs (10)
20var binder = GetBinder(); 39var binder = GetBinder(); 62var binder = GetBinder(); 81var binder = GetBinder(); 96var binder = GetBinder(); 118var binder = GetBinder(); 143var binder = GetBinder(); 166var binder = GetBinder(); 189var binder = GetBinder(DateTimeStyles.AssumeLocal); 202private IModelBinder GetBinder(DateTimeStyles? dateTimeStyles = null)
ModelBinding\Binders\DecimalModelBinderTest.cs (1)
19protected override IModelBinder GetBinder(NumberStyles numberStyles)
ModelBinding\Binders\DictionaryModelBinderProviderTest.cs (3)
23var result = provider.GetBinder(context); 44return Mock.Of<IModelBinder>(); 54var result = provider.GetBinder(context);
ModelBinding\Binders\DictionaryModelBinderTest.cs (2)
346new ComplexObjectModelBinder(new Dictionary<ModelMetadata, IModelBinder>() 351Array.Empty<IModelBinder>(),
ModelBinding\Binders\DoubleModelBinderTest.cs (1)
19protected override IModelBinder GetBinder(NumberStyles numberStyles)
ModelBinding\Binders\EnumTypeModelBinderProviderTest.cs (3)
20var result = provider.GetBinder(context); 36var result = provider.GetBinder(context); 53var result = provider.GetBinder(context);
ModelBinding\Binders\EnumTypeModelBinderTest.cs (2)
235private static (DefaultModelBindingContext, IModelBinder) GetBinderAndContext( 254var binder = binderProvider.GetBinder(binderProviderContext);
ModelBinding\Binders\FloatingPointTypeModelBinderProviderTest.cs (5)
22var result = provider.GetBinder(context); 42var result = provider.GetBinder(context); 58var result = provider.GetBinder(context); 74var result = provider.GetBinder(context); 90var result = provider.GetBinder(context);
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (17)
41var binder = GetBinder(); 61var binder = GetBinder(); 85var binder = GetBinder(); 109var binder = GetBinder(NumberStyles.Float & ~NumberStyles.AllowLeadingWhite); 133var binder = GetBinder(NumberStyles.Float & ~NumberStyles.AllowDecimalPoint); 157var binder = GetBinder(NumberStyles.Float); 177var binder = GetBinder(); 199var binder = GetBinder(); 224var binder = GetBinder(); 245var binder = GetBinder(); 267var binder = GetBinder(); 288var binder = GetBinder(); 309var binder = GetBinder(); 330var binder = GetBinder(); 351var binder = GetBinder(); 362protected abstract IModelBinder GetBinder(NumberStyles numberStyles); 364private IModelBinder GetBinder()
ModelBinding\Binders\FloatModelBinderTest.cs (1)
19protected override IModelBinder GetBinder(NumberStyles numberStyles)
ModelBinding\Binders\FormCollectionModelBinderProviderTest.cs (2)
38var result = provider.GetBinder(context); 52var result = provider.GetBinder(context);
ModelBinding\Binders\FormFileModelBinderProviderTest.cs (2)
23var result = provider.GetBinder(context); 42var result = provider.GetBinder(context);
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (19)
33var testBinder = Mock.Of<IModelBinder>(); 39var result = provider.GetBinder(context); 56var testBinder = Mock.Of<IModelBinder>(); 62var result = provider.GetBinder(context); 79var testBinder = Mock.Of<IModelBinder>(); 85var result = provider.GetBinder(context); 105var testBinder = Mock.Of<IModelBinder>(); 111var result = provider.GetBinder(context); 127var testBinder = Mock.Of<IModelBinder>(); 133var result = provider.GetBinder(context); 149var testBinder = Mock.Of<IModelBinder>(); 155var result = provider.GetBinder(context); 172var result = provider.GetBinder(context);
ModelBinding\Binders\HeaderModelBinderTests.cs (11)
95var binder = CreateBinder(bindingContext); 142var binder = CreateBinder(bindingContext); 164var binder = CreateBinder(bindingContext); 182var binder = CreateBinder(bindingContext); 205var binder = CreateBinder(bindingContext); 222var binder = CreateBinder(bindingContext); 239var binder = CreateBinder(bindingContext); 263var binder = CreateBinder(bindingContext); 285var binder = CreateBinder(bindingContext); 309var binder = CreateBinder(bindingContext); 372private static IModelBinder CreateBinder(DefaultModelBindingContext bindingContext)
ModelBinding\Binders\KeyValuePairModelBinderProviderTest.cs (3)
23var result = provider.GetBinder(context); 40return Mock.Of<IModelBinder>(); 50var result = provider.GetBinder(context);
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
228private static IModelBinder CreateIntBinder(bool success = true) 242private static IModelBinder CreateStringBinder(bool success = true)
ModelBinding\Binders\ServicesModelBinderProviderTest.cs (3)
34var result = provider.GetBinder(context); 50var result = provider.GetBinder(context); 66var result = provider.GetBinder(context);
ModelBinding\Binders\SimpleTypeModelBinderProviderTest.cs (2)
22var result = provider.GetBinder(context); 40var result = provider.GetBinder(context);
ModelBinding\Binders\TryParseTypeModelBinderProviderTest.cs (2)
19var result = provider.GetBinder(context); 33var result = provider.GetBinder(context);
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (18)
50var binder = CreateBinder(destinationType); 69var binder = CreateBinder(destinationType); 94var binder = CreateBinder(typeof(int)); 134var binder = CreateBinder(typeof(int), loggerFactory); 155var binder = CreateBinder(typeof(int?)); 176var binder = CreateBinder(typeof(double?)); 201var binder = CreateBinder(typeof(int), loggerFactory); 243var binder = CreateBinder(type); 271var binder = CreateBinder(typeof(decimal)); 292var binder = CreateBinder(typeof(decimal)); 316var binder = CreateBinder(typeof(IntEnum)); 337var binder = CreateBinder(typeof(IntEnum)); 374var binder = CreateBinder(typeof(IntEnum)); 397var binder = CreateBinder(typeof(FlagsEnum)); 424var binder = CreateBinder(typeof(TestTryParseClass)); 447var binder = CreateBinder(typeof(TestTryParseClass)); 473var binder = CreateBinder(typeof(FlagsEnum)); 502private static IModelBinder CreateBinder(Type modelType, ILoggerFactory loggerFactory = null) =>
ModelBinding\ModelBinderFactoryTest.cs (43)
75return Mock.Of<IModelBinder>(); 92var result = factory.CreateBinder(context); 131var result = factory.CreateBinder(context); 150return Mock.Of<IModelBinder>(); 154return Mock.Of<IModelBinder>(); 171var result = factory.CreateBinder(context); 190var binder = c.CreateBinder(c.Metadata.Properties[nameof(Employee.Manager)]); 197return Mock.Of<IModelBinder>(); 211var result = factory.CreateBinder(context); 227return Mock.Of<IModelBinder>(); 241var result1 = factory.CreateBinder(context); 242var result2 = factory.CreateBinder(context); 258return Mock.Of<IModelBinder>(); 273var result1 = factory.CreateBinder(context); 274var result2 = factory.CreateBinder(context); 355var modelBinder = Mock.Of<IModelBinder>(); 383var result = factory.CreateBinder(factoryContext); 397IModelBinder inner = null; 403var binder = c.CreateBinder(c.Metadata.Properties[nameof(Widget.Id)]); 413return Mock.Of<IModelBinder>(); 422return Mock.Of<IModelBinder>(); 440var result1 = factory.CreateBinder(context); 441var result2 = factory.CreateBinder(context); 458IModelBinder inner = null; 464var binder = c.CreateBinder(c.Metadata.Properties[nameof(Widget.Id)]); 475return Mock.Of<IModelBinder>(); 502var result1 = factory.CreateBinder(context); 503var result2 = factory.CreateBinder(context); 522IModelBinder inner = null; 529return Mock.Of<IModelBinder>(); 538return Mock.Of<IModelBinder>(); 556var result1 = factory.CreateBinder(context); 562var result2 = factory.CreateBinder(context); 584IModelBinder inner = null; 585IModelBinder innerInner = null; 592return Mock.Of<IModelBinder>(); 620var result1 = factory.CreateBinder(context); 626var result2 = factory.CreateBinder(context); 678private readonly Func<ModelBinderProviderContext, IModelBinder> _factory; 680public TestModelBinderProvider(Func<ModelBinderProviderContext, IModelBinder> factory) 687public IModelBinder GetBinder(ModelBinderProviderContext context) 689var binder = _factory(context);
ModelBinding\ModelBinderProviderExtensionsTest.cs (2)
48public IModelBinder GetBinder(ModelBinderProviderContext context) 56public IModelBinder GetBinder(ModelBinderProviderContext context)
ModelBinding\ModelBindingHelperTest.cs (1)
769public static ModelBinderFactory GetModelBinderFactory(IModelBinder binder)
ModelBinding\ParameterBinderTest.cs (9)
332var modelBinder = CreateMockModelBinder(modelBindingResult); 387var modelBinder = CreateMockModelBinder(modelBindingResult); 442var modelBinder = CreateMockModelBinder(modelBindingResult); 496var modelBinder = CreateMockModelBinder(modelBindingResult); 556var modelBinder = CreateMockModelBinder(modelBindingResult); 617var modelBinder = CreateMockModelBinder(modelBindingResult); 685var modelBinder = CreateMockModelBinder(modelBindingResult); 727private static IModelBinder CreateMockModelBinder(ModelBindingResult modelBinderResult) 729var mockBinder = new Mock<IModelBinder>(MockBehavior.Strict);
ModelBinding\StubModelBinder.cs (1)
56public IModelBinder Object => this;
ModelBinding\TestModelBinderProviderContext.cs (7)
19private readonly List<Func<ModelMetadata, IModelBinder>> _binderCreators = 20new List<Func<ModelMetadata, IModelBinder>>(); 67public override IModelBinder CreateBinder(ModelMetadata metadata) 71var result = creator(metadata); 81public override IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo) 87public void OnCreatingBinder(Func<ModelMetadata, IModelBinder> binderCreator) 92public void OnCreatingBinder(ModelMetadata metadata, Func<IModelBinder> binderCreator)
Microsoft.AspNetCore.Mvc.IntegrationTests (141)
ActionParametersIntegrationTest.cs (3)
1069public CustomComplexTypeModelBinder(IDictionary<ModelMetadata, IModelBinder> propertyBinders) 1083public IModelBinder GetBinder(ModelBinderProviderContext context) 1085var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ComplexRecordIntegrationTest.cs (75)
50var modelBinder = GetModelBinder(testContext, parameter, metadata); 100var modelBinder = GetModelBinder(testContext, parameter, metadata); 152var modelBinder = GetModelBinder(testContext, parameter, metadata); 206var modelBinder = GetModelBinder(testContext, parameter, metadata); 255var modelBinder = GetModelBinder(testContext, parameter, metadata); 304var modelBinder = GetModelBinder(testContext, parameter, metadata); 352var modelBinder = GetModelBinder(testContext, parameter, metadata); 404var modelBinder = GetModelBinder(testContext, parameter, metadata); 456var modelBinder = GetModelBinder(testContext, parameter, metadata); 509var modelBinder = GetModelBinder(testContext, parameter, metadata); 562var modelBinder = GetModelBinder(testContext, parameter, metadata); 616var modelBinder = GetModelBinder(testContext, parameter, metadata); 666var modelBinder = GetModelBinder(testContext, parameter, metadata); 723var modelBinder = GetModelBinder(testContext, parameter, metadata); 777var modelBinder = GetModelBinder(testContext, parameter, metadata); 832var modelBinder = GetModelBinder(testContext, parameter, metadata); 887var modelBinder = GetModelBinder(testContext, parameter, metadata); 934var modelBinder = GetModelBinder(testContext, parameter, metadata); 980var modelBinder = GetModelBinder(testContext, parameter, metadata); 1035var modelBinder = GetModelBinder(testContext, parameter, metadata); 1090var modelBinder = GetModelBinder(testContext, parameter, metadata); 1137var modelBinder = GetModelBinder(testContext, parameter, metadata); 1183var modelBinder = GetModelBinder(testContext, parameter, metadata); 1238var modelBinder = GetModelBinder(testContext, parameter, metadata); 1293var modelBinder = GetModelBinder(testContext, parameter, metadata); 1340var modelBinder = GetModelBinder(testContext, parameter, metadata); 1399var modelBinder = GetModelBinder(testContext, parameter, metadata); 1506var modelBinder = GetModelBinder(testContext, parameter, metadata); 1613var modelBinder = GetModelBinder(testContext, parameter, metadata); 1717var modelBinder = GetModelBinder(testContext, parameter, metadata); 1772var modelBinder = GetModelBinder(testContext, parameter, metadata); 1836var modelBinder = GetModelBinder(testContext, parameter, metadata); 1922var modelBinder = GetModelBinder(testContext, parameter, metadata); 1968var modelBinder = GetModelBinder(testContext, parameter, metadata); 2024var modelBinder = GetModelBinder(testContext, parameter, metadata); 2076var modelBinder = GetModelBinder(testContext, parameter, metadata); 2130var modelBinder = GetModelBinder(testContext, parameter, metadata); 2188var modelBinder = GetModelBinder(testContext, parameter, metadata); 2244var modelBinder = GetModelBinder(testContext, parameter, metadata); 2296var modelBinder = GetModelBinder(testContext, parameter, metadata); 2344var modelBinder = GetModelBinder(testContext, parameter, metadata); 2392var modelBinder = GetModelBinder(testContext, parameter, metadata); 2444var modelBinder = GetModelBinder(testContext, parameter, metadata); 2491var modelBinder = GetModelBinder(testContext, parameter, metadata); 2541var modelBinder = GetModelBinder(testContext, parameter, metadata); 2595var modelBinder = GetModelBinder(testContext, parameter, metadata); 2654var modelBinder = GetModelBinder(testContext, parameter, metadata); 2703var modelBinder = GetModelBinder(testContext, parameter, metadata); 2759var modelBinder = GetModelBinder(testContext, parameter, metadata); 2813var modelBinder = GetModelBinder(testContext, parameter, metadata); 2871var modelBinder = GetModelBinder(testContext, parameter, metadata); 2917var modelBinder = GetModelBinder(testContext, parameter, metadata); 2986var modelBinder = GetModelBinder(testContext, parameter, metadata); 3058var modelBinder = GetModelBinder(testContext, parameter, metadata); 3122var modelBinder = GetModelBinder(testContext, parameter, metadata); 3174var modelBinder = GetModelBinder(testContext, parameter, metadata); 3249var modelBinder = GetModelBinder(testContext, parameter, metadata); 3456var modelBinder = GetModelBinder(testContext, parameter, metadata); 3498var modelBinder = GetModelBinder(testContext, parameter, metadata); 3541var modelBinder = GetModelBinder(testContext, parameter, metadata); 3584var modelBinder = GetModelBinder(testContext, parameter, metadata); 3635var modelBinder = GetModelBinder(testContext, parameter, metadata); 3681var modelBinder = GetModelBinder(testContext, parameter, metadata); 3733var modelBinder = GetModelBinder(testContext, parameter, metadata); 3776var modelBinder = GetModelBinder(testContext, parameter, metadata); 3821var modelBinder = GetModelBinder(testContext, parameter, metadata); 3864var modelBinder = GetModelBinder(testContext, parameter, metadata); 3908var modelBinder = GetModelBinder(testContext, parameter, metadata); 3953var modelBinder = GetModelBinder(testContext, parameter, metadata); 3997var modelBinder = GetModelBinder(testContext, parameter, metadata); 4038var modelBinder = GetModelBinder(testContext, parameter, metadata); 4081var modelBinder = GetModelBinder(testContext, parameter, metadata); 4126var modelBinder = GetModelBinder(testContext, parameter, metadata); 4171var modelBinder = GetModelBinder(testContext, parameter, metadata); 4246private IModelBinder GetModelBinder(
ComplexTypeIntegrationTestBase.cs (60)
42var modelBinder = GetModelBinder(testContext, parameter, metadata); 87var modelBinder = GetModelBinder(testContext, parameter, metadata); 137var modelBinder = GetModelBinder(testContext, parameter, metadata); 189var modelBinder = GetModelBinder(testContext, parameter, metadata); 238var modelBinder = GetModelBinder(testContext, parameter, metadata); 287var modelBinder = GetModelBinder(testContext, parameter, metadata); 345var modelBinder = GetModelBinder(testContext, parameter, metadata); 397var modelBinder = GetModelBinder(testContext, parameter, metadata); 449var modelBinder = GetModelBinder(testContext, parameter, metadata); 512var modelBinder = GetModelBinder(testContext, parameter, metadata); 565var modelBinder = GetModelBinder(testContext, parameter, metadata); 619var modelBinder = GetModelBinder(testContext, parameter, metadata); 669var modelBinder = GetModelBinder(testContext, parameter, metadata); 726var modelBinder = GetModelBinder(testContext, parameter, metadata); 785var modelBinder = GetModelBinder(testContext, parameter, metadata); 840var modelBinder = GetModelBinder(testContext, parameter, metadata); 895var modelBinder = GetModelBinder(testContext, parameter, metadata); 942var modelBinder = GetModelBinder(testContext, parameter, metadata); 993var modelBinder = GetModelBinder(testContext, parameter, metadata); 1048var modelBinder = GetModelBinder(testContext, parameter, metadata); 1103var modelBinder = GetModelBinder(testContext, parameter, metadata); 1150var modelBinder = GetModelBinder(testContext, parameter, metadata); 1201var modelBinder = GetModelBinder(testContext, parameter, metadata); 1256var modelBinder = GetModelBinder(testContext, parameter, metadata); 1311var modelBinder = GetModelBinder(testContext, parameter, metadata); 1358var modelBinder = GetModelBinder(testContext, parameter, metadata); 1435var modelBinder = GetModelBinder(testContext, parameter, metadata); 1542var modelBinder = GetModelBinder(testContext, parameter, metadata); 1649var modelBinder = GetModelBinder(testContext, parameter, metadata); 1758var modelBinder = GetModelBinder(testContext, parameter, metadata); 1813var modelBinder = GetModelBinder(testContext, parameter, metadata); 1868var modelBinder = GetModelBinder(testContext, parameter, metadata); 1917var modelBinder = GetModelBinder(testContext, parameter, metadata); 1976var modelBinder = GetModelBinder(testContext, parameter, metadata); 2069var modelBinder = GetModelBinder(testContext, parameter, metadata); 2122var modelBinder = GetModelBinder(testContext, parameter, metadata); 2177var modelBinder = GetModelBinder(testContext, parameter, metadata); 2238var modelBinder = GetModelBinder(testContext, parameter, metadata); 2292var modelBinder = GetModelBinder(testContext, parameter, metadata); 2350var modelBinder = GetModelBinder(testContext, parameter, metadata); 2410var modelBinder = GetModelBinder(testContext, parameter, metadata); 2462var modelBinder = GetModelBinder(testContext, parameter, metadata); 2510var modelBinder = GetModelBinder(testContext, parameter, metadata); 2562var modelBinder = GetModelBinder(testContext, parameter, metadata); 2614var modelBinder = GetModelBinder(testContext, parameter, metadata); 2661var modelBinder = GetModelBinder(testContext, parameter, metadata); 2714var modelBinder = GetModelBinder(testContext, parameter, metadata); 2768var modelBinder = GetModelBinder(testContext, parameter, metadata); 2833var modelBinder = GetModelBinder(testContext, parameter, metadata); 2882var modelBinder = GetModelBinder(testContext, parameter, metadata); 2950var modelBinder = GetModelBinder(testContext, parameter, metadata); 3004var modelBinder = GetModelBinder(testContext, parameter, metadata); 3064var modelBinder = GetModelBinder(testContext, parameter, metadata); 3121var modelBinder = GetModelBinder(testContext, parameter, metadata); 3194var modelBinder = GetModelBinder(testContext, parameter, metadata); 3273var modelBinder = GetModelBinder(testContext, parameter, metadata); 3344var modelBinder = GetModelBinder(testContext, parameter, metadata); 3396var modelBinder = GetModelBinder(testContext, parameter, metadata); 3478var modelBinder = GetModelBinder(testContext, parameter, metadata); 3745private IModelBinder GetModelBinder(
ExcludeBindingMetadataProviderIntegrationTest.cs (1)
131public IModelBinder GetBinder(ModelBinderProviderContext context)
GenericModelBinderIntegrationTest.cs (1)
150public IModelBinder GetBinder(ModelBinderProviderContext context)
ParameterBinderExtensions.cs (1)
67var modelBinder = modelBinderFactory.CreateBinder(new ModelBinderFactoryContext
Microsoft.AspNetCore.Mvc.RazorPages (4)
Infrastructure\PageBinderFactory.cs (4)
34var binder = modelBinderFactory.CreateBinder(new ModelBinderFactoryContext 115var binder = modelBinderFactory.CreateBinder(new ModelBinderFactoryContext 165public BinderItem(IModelBinder modelBinder, ModelMetadata modelMetadata) 173public IModelBinder ModelBinder { get; }
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageBinderFactoryTest.cs (1)
823IModelBinder modelBinder,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ControllerTest.cs (1)
428private static Controller GetController(IModelBinder binder, IValueProvider valueProvider)