aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting 28aec3f5cc Support user overrides of system-provided `ModelError` messages
- #2969
- add `ModelBindingMessages` for configuration and `IBindingMetadataProvider` overrides
  - use `interface` to avoid `new` oddities when adding a setter to an `abstract` property
- add `IModelBindingMessages` to `ModelMetadata` for use in rest of the product code
- plumb the various bits through the system
- add integration tests using a custom `IBindingMetadataProvider`s to override messages

nits:
- remove unused resources
- use `AttemptedValue` and not `model` in `SimpleTypeModelBinder`
2015-09-28 15:50:21 -07:00
..
Metadata Support user overrides of system-provided `ModelError` messages 2015-09-28 15:50:21 -07:00
Validation Rewrite of validation 2015-09-25 16:56:42 -07:00
ArrayModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
BinderTypeBasedModelBinderModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
BindingSourceValueProviderTest.cs Make IValueProvider sync, IValueProviderFactory async 2015-08-21 14:58:55 -07:00
BodyModelBinderTests.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
ByteArrayModelBinderTests.cs Make ModelBindingResult a struct. 2015-09-03 12:52:50 -07:00
CancellationTokenModelBinderTests.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
CollectionModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
CompositeModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
CompositeValueProviderTest.cs React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
DictionaryBasedValueProviderTests.cs Make IValueProvider sync, IValueProviderFactory async 2015-08-21 14:58:55 -07:00
DictionaryModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
ElementalValueProviderTests.cs Test Cleanup: Fix Assert.NotNulls with ModelBindingResult 2015-09-07 17:15:31 -07:00
EnumerableValueProviderTest.cs React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
FormCollectionModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
FormFileModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
FormValueProviderFactoryTest.cs React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
HeaderModelBinderTests.cs Optimize async code in model binders 2015-09-08 09:42:34 -07:00
JQueryFormValueProviderFactoryTest.cs React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
JQueryFormValueProviderTest.cs React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
KeyValuePairModelBinderTest.cs Support user overrides of system-provided `ModelError` messages 2015-09-28 15:50:21 -07:00
ModelBindingContextTest.cs Change ModelBinding to use a single pass 2015-08-31 11:58:53 -07:00
ModelBindingHelperTest.cs Add localizers to validation attributes 2015-09-25 16:13:21 -07:00
ModelBindingResultTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
MutableObjectModelBinderTest.cs Support user overrides of system-provided `ModelError` messages 2015-09-28 15:50:21 -07:00
QueryStringValueProviderFactoryTest.cs Make IValueProvider sync, IValueProviderFactory async 2015-08-21 14:58:55 -07:00
ReadableStringCollectionValueProviderTest.cs React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
ServiceModelBinderTest.cs Rewrite of validation 2015-09-25 16:56:42 -07:00
SimpleTypeModelBinderTest.cs Support user overrides of system-provided `ModelError` messages 2015-09-28 15:50:21 -07:00
SimpleValueProvider.cs Make IValueProvider sync, IValueProviderFactory async 2015-08-21 14:58:55 -07:00
TestValueProvider.cs