aspnetcore/test/Microsoft.AspNetCore.Mvc.Co.../ModelBinding/Binders
Doug Bunting 5c8dfef15e
Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]`
- #8180
- add an error when binding fails for top-level model
  - same case as when MVC creates "default" / empty model i.e. `ParameterBinder` can't detect this
- update `CollectionModelBinder` subclasses and the various providers as well
- controlled by existing `MvcOptions.AllowValidatingTopLevelNodes` option

smaller issue:
- change `ModelBinding_MissingBindRequiredMember` resource to mention parameters too
2018-09-21 11:08:16 -07:00
..
ArrayModelBinderProviderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
ArrayModelBinderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
BinderTypeModelBinderProviderTest.cs
BinderTypeModelBinderTest.cs
BodyModelBinderProviderTest.cs
BodyModelBinderTests.cs
ByteArrayModelBinderProviderTest.cs
ByteArrayModelBinderTests.cs
CancellationTokenModelBinderProviderTest.cs
CancellationTokenModelBinderTests.cs
CollectionModelBinderProviderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
CollectionModelBinderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
ComplexTypeModelBinderProviderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
ComplexTypeModelBinderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
DecimalModelBinderTest.cs
DictionaryModelBinderProviderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
DictionaryModelBinderTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
DoubleModelBinderTest.cs
EnumTypeModelBinderProviderTest.cs
EnumTypeModelBinderTest.cs
FloatModelBinderTest.cs
FloatingPointTypeModelBinderProviderTest.cs
FloatingPointTypeModelBinderTestOfT.cs
FormCollectionModelBinderProviderTest.cs
FormCollectionModelBinderTest.cs
FormFileModelBinderProviderTest.cs
FormFileModelBinderTest.cs
HeaderModelBinderProviderTest.cs
HeaderModelBinderTests.cs
KeyValuePairModelBinderProviderTest.cs
KeyValuePairModelBinderTest.cs
ServicesModelBinderProviderTest.cs
ServicesModelBinderTest.cs
SimpleTypeModelBinderProviderTest.cs
SimpleTypeModelBinderTest.cs