aspnetcore/test/Microsoft.AspNetCore.Mvc.Co.../ModelBinding
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
..
Binders Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
Internal
Metadata Use ModelMetadata from actual types for validation 2018-07-02 11:23:16 -07:00
Validation
BindingSourceValueProviderTest.cs
CompositeValueProviderTest.cs
DefaultModelBindingContextTest.cs
EnumerableValueProviderTest.cs
FormValueProviderFactoryTest.cs
FormValueProviderTest.cs
JQueryFormValueProviderFactoryTest.cs
JQueryFormValueProviderTest.cs
JQueryQueryStringValueProviderFactoryTest.cs Include parameter type's attributes in ModelMetadata 2018-04-17 12:40:38 -07:00
JQueryQueryStringValueProviderTest.cs
ModelBinderFactoryTest.cs
ModelBinderProviderExtensionsTest.cs
ModelBindingHelperTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ModelBindingResultTest.cs
ParameterBinderTest.cs [Design] Add a MaxValidationDepth option to ValidationVisitor 2018-08-16 15:01:18 -07:00
QueryStringValueProviderFactoryTest.cs
QueryStringValueProviderTest.cs
RouteValueProviderTests.cs
StubModelBinder.cs
TestModelBinderProviderContext.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
TestValueProvider.cs
UnsupportedContentTypeFilterTest.cs
ValueProviderFactoryExtensionsTest.cs