aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting 04453a2b4f Support user overrides of three more framework-provided `ModelState`-related messages
- #3215
- add new accessor properties to `IModelBindingMessageProvider` and plumb them through
  - use in `ModelStateDictionary` when handling a `FormatException` or `OverflowException`
  - use in `ValidationHelpers` when handling a `ModelError` with `null` `ErrorMessage`
- add new `ModelExplorer` parameter to `IHtmlGenerator.GenerateValidationMessage()`
  - plumb through to `ValidationHelpers.GetModelErrorMessageOrDefault()`

Started from work @kichalla did on the `kiran/movemessages-to-messageprovider` branch in #3775.

nits:
- use helper methods more consistently in `HtmlHelper<T>`; slightly improves error checking
- remove unused `Resources` class from `Microsoft.AspNet.Mvc`
- make `ValidationHelpers` class `public`; already in `.Internal` namespace
  - split `GetUserErrorMessageOrDefault()` in two; rename to `GetModelErrorMessageOrDefault()`
- fix some #YOLO wrapping
2016-01-20 21:14:33 -08:00
..
Metadata Support user overrides of three more framework-provided `ModelState`-related messages 2016-01-20 21:14:33 -08:00
Validation Allow ValidationAttributes and IValidatableObjects to resolve services from the RequestServices provider by injecting it into the ValidationContext. 2016-01-20 09:19:24 -08:00
ArrayModelBinderTest.cs
BinderTypeBasedModelBinderModelBinderTest.cs
BindingSourceValueProviderTest.cs
BodyModelBinderTests.cs
ByteArrayModelBinderTests.cs
CancellationTokenModelBinderTests.cs
CollectionModelBinderTest.cs
CompositeModelBinderTest.cs
CompositeValueProviderTest.cs
DictionaryModelBinderTest.cs
ElementalValueProviderTests.cs
EnumerableValueProviderTest.cs
FormCollectionModelBinderTest.cs
FormFileModelBinderTest.cs
FormValueProviderFactoryTest.cs
FormValueProviderTest.cs
HeaderModelBinderTests.cs
JQueryFormValueProviderFactoryTest.cs
JQueryFormValueProviderTest.cs
KeyValuePairModelBinderTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
ModelBindingContextTest.cs
ModelBindingHelperTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
ModelBindingResultTest.cs
MutableObjectModelBinderTest.cs Move logic from `HtmlLocalizer` to `LocalizedHtmlString` 2015-12-02 18:39:37 -08:00
QueryStringValueProviderFactoryTest.cs
QueryStringValueProviderTest.cs
RouteValueProviderTests.cs Rename DictionaryBasedValueProvider to RouteValueProvider 2015-12-29 18:51:47 -08:00
ServicesModelBinderTest.cs
SimpleTypeModelBinderTest.cs Add test coverage for Flags enum binding 2015-12-07 17:18:06 -08:00
SimpleValueProvider.cs
TestValueProvider.cs Rename DictionaryBasedValueProvider to RouteValueProvider 2015-12-29 18:51:47 -08:00