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
CollectionModelBinderProviderTest.cs
CollectionModelBinderTest.cs Remove `ValueProviderResultExtensions` 2017-03-24 22:17:34 -07:00
ComplexTypeModelBinderProviderTest.cs
ComplexTypeModelBinderTest.cs Remove TaskCache and TaskCacheOfT 2017-06-08 08:19:20 -07:00
DictionaryModelBinderProviderTest.cs
DictionaryModelBinderTest.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 Do not include type names in `ModelState` error messages 2017-06-28 15:16:23 -07:00