- #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 |
||
|---|---|---|
| .. | ||
| Models | ||
| ActionParametersIntegrationTest.cs | ||
| ArrayModelBinderIntegrationTest.cs | ||
| BinderTypeBasedModelBinderIntegrationTest.cs | ||
| BodyValidationIntegrationTests.cs | ||
| ByteArrayModelBinderIntegrationTest.cs | ||
| CancellationTokenModelBinderIntegrationTest.cs | ||
| CollectionModelBinderIntegrationTest.cs | ||
| CompanyNameAttribute.cs | ||
| DictionaryModelBinderIntegrationTest.cs | ||
| FormCollectionModelBindingIntegrationTest.cs | ||
| FormFileModelBindingIntegrationTest.cs | ||
| GenericModelBinderIntegrationTest.cs | ||
| HeaderModelBinderIntegrationTest.cs | ||
| KeyValuePairModelBinderIntegrationTest.cs | ||
| Microsoft.AspNet.Mvc.IntegrationTests.xproj | ||
| ModelBindingTestHelper.cs | ||
| ModelPrefixSelectionIntegrationTest.cs | ||
| MutableObjectModelBinderIntegrationTest.cs | ||
| ProductValidatorAttribute.cs | ||
| ServicesModelBinderIntegrationTest.cs | ||
| SimpleTypeModelBinderIntegrationTest.cs | ||
| TestMvcOptions.cs | ||
| TryUpdateModelIntegrationTest.cs | ||
| TryValidateModelIntegrationTest.cs | ||
| ValidationIntegrationTests.cs | ||
| project.json | ||