- #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 |
||
|---|---|---|
| .. | ||
| Metadata | ||
| Validation | ||
| 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 | ||
| ModelBindingContextTest.cs | ||
| ModelBindingHelperTest.cs | ||
| ModelBindingResultTest.cs | ||
| MutableObjectModelBinderTest.cs | ||
| QueryStringValueProviderFactoryTest.cs | ||
| QueryStringValueProviderTest.cs | ||
| RouteValueProviderTests.cs | ||
| ServicesModelBinderTest.cs | ||
| SimpleTypeModelBinderTest.cs | ||
| SimpleValueProvider.cs | ||
| TestValueProvider.cs | ||