aspnetcore/test/Microsoft.AspNetCore.Mvc.Co.../ModelBinding/Binders
Doug Bunting a90f4118ad Do not include type names in `ModelState` error messages
- #6076
- add resources and accessors specifically for the element / parameter cases
- avoid `metadata.GetDisplayName()` where possible
- fill in the `ValidationContext` that `ValidatorObjectAdapter` uses
  - e.g. `Validate_NestedComplexType_IValidatableObject_Invalid()` test fails without this

Possible future work:
- improve error message used for `ModelMetadata.IsRequired` elements and parameters
- use something besides the type for `ValidationContext.DisplayName` of elements and parameters

nits:
- trailing whitespace
- use more `out var`
2017-06-28 15:16:23 -07:00
..
ArrayModelBinderProviderTest.cs
ArrayModelBinderTest.cs Remove `ValueProviderResultExtensions` 2017-03-24 22:17:34 -07:00
BinderTypeModelBinderProviderTest.cs
BinderTypeModelBinderTest.cs Remove TaskCache and TaskCacheOfT 2017-06-08 08:19:20 -07:00
BodyModelBinderProviderTest.cs Upgrade test framework versions and fix test issues 2017-05-15 14:11:27 -07:00
BodyModelBinderTests.cs Replace IModelBindingMessageProvider with new highly-virtual base class (#6241) 2017-05-10 16:02:18 +01:00
ByteArrayModelBinderProviderTest.cs
ByteArrayModelBinderTests.cs Do not include type names in `ModelState` error messages 2017-06-28 15:16:23 -07:00
CancellationTokenModelBinderProviderTest.cs
CancellationTokenModelBinderTests.cs Make ModelBindingContext.Result non-nullable 2016-05-23 14:18:34 -07:00
CollectionModelBinderProviderTest.cs Get rid of some duplicate test data 2016-09-21 14:52:52 -07:00
CollectionModelBinderTest.cs Remove `ValueProviderResultExtensions` 2017-03-24 22:17:34 -07:00
ComplexTypeModelBinderProviderTest.cs [Fixes #5698] Regression in 1.1 model binding for model types without default constructor 2017-02-10 11:10:02 -08:00
ComplexTypeModelBinderTest.cs Remove TaskCache and TaskCacheOfT 2017-06-08 08:19:20 -07:00
DictionaryModelBinderProviderTest.cs
DictionaryModelBinderTest.cs Make ModelBindingContext.Result non-nullable 2016-05-23 14:18:34 -07:00
FormCollectionModelBinderProviderTest.cs Modified FormCollectionModelBinderProvider to throw when binding for FormCollection model type. 2016-10-07 16:46:11 -07:00
FormCollectionModelBinderTest.cs Make ModelBindingContext.Result non-nullable 2016-05-23 14:18:34 -07:00
FormFileModelBinderProviderTest.cs
FormFileModelBinderTest.cs ModelBinding: Remove IsReadOnly checks and add/update tests 2016-08-04 14:20:23 -07:00
HeaderModelBinderProviderTest.cs
HeaderModelBinderTests.cs ModelBinding: Remove IsReadOnly checks and add/update tests 2016-08-04 14:20:23 -07:00
KeyValuePairModelBinderProviderTest.cs
KeyValuePairModelBinderTest.cs Move classes out of .Internal 2017-01-19 11:11:28 -08:00
ServicesModelBinderProviderTest.cs
ServicesModelBinderTest.cs Make ModelBindingContext.Result non-nullable 2016-05-23 14:18:34 -07:00
SimpleTypeModelBinderProviderTest.cs
SimpleTypeModelBinderTest.cs Do not include type names in `ModelState` error messages 2017-06-28 15:16:23 -07:00