aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting d45e2ee3f5 Handle broader range of collection types in model binding
- #2793
- add `ICollectionModelBinder`, allowing `GenericModelBinder` to call `CreateEmptyCollection()`
- adjust `CollectionModelBinder` and `DictionaryModelBinder` to activate model if default types are incompatible
 - do not create default (empty) top-level collection in fallback case if Model already non-`null`
- change type checks in `GenericModelBinder` to align with `CollectionModelBinder` capabilities
 - add special case for `IEnumerable<T>`
- correct `ModelMetadata` of a few tests that previously did not need that information
2015-08-11 08:26:49 -07:00
..
Metadata
Validation
ArrayModelBinderTest.cs
BinderTypeBasedModelBinderModelBinderTest.cs Reacting to DI changes 2015-08-07 10:50:25 -07:00
BindingSourceModelBinderTest.cs
BindingSourceValueProviderTest.cs
BodyModelBinderTests.cs
ByteArrayModelBinderTests.cs
CancellationTokenModelBinderTests.cs
CollectionModelBinderTest.cs Handle broader range of collection types in model binding 2015-08-11 08:26:49 -07:00
ComplexModelDtoTest.cs
CompositeModelBinderTest.cs
CompositeValueProviderTest.cs Make `CompositeValueProvider` consistent with `IBindingSourceValueProvider` contract 2015-08-06 16:05:13 -07:00
DictionaryBasedValueProviderTests.cs
DictionaryModelBinderTest.cs Handle broader range of collection types in model binding 2015-08-11 08:26:49 -07:00
ElementalValueProviderTests.cs
EnumerableValueProviderTest.cs Make `CompositeValueProvider` consistent with `IBindingSourceValueProvider` contract 2015-08-06 16:05:13 -07:00
FormCollectionModelBinderTest.cs
FormFileModelBinderTest.cs
FormValueProviderFactoryTest.cs Add support for jQuery syntax in form data 2015-08-05 10:31:24 -07:00
HeaderModelBinderTests.cs
JQueryFormValueProviderFactoryTest.cs Add support for jQuery syntax in form data 2015-08-05 10:31:24 -07:00
JQueryFormValueProviderTest.cs Add support for jQuery syntax in form data 2015-08-05 10:31:24 -07:00
KeyValuePairModelBinderTest.cs
ModelBindingContextTest.cs
ModelBindingResultTest.cs
MutableObjectModelBinderTest.cs
QueryStringValueProviderFactoryTest.cs
ReadableStringCollectionValueProviderTest.cs Add support for jQuery syntax in form data 2015-08-05 10:31:24 -07:00
SimpleHttpValueProvider.cs
TestValueProvider.cs
TypeConverterModelBinderTest.cs
TypeMatchModelBinderTest.cs