aspnetcore/test/Microsoft.AspNet.Mvc.DataAn...
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
..
Properties
CompareAttributeAdapterTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
DataAnnotationsClientModelValidatorProviderTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
DataAnnotationsMetadataProviderTest.cs Making the HtmlHelper.GetEnumSelectList take DisplayAttribute.GroupName into account to create select groups. 2015-09-29 09:53:48 -07:00
DataAnnotationsModelValidatorProviderTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
DataAnnotationsModelValidatorTest.cs 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
DataMemberRequiredBindingMetadataProviderTest.cs
DataTypeClientModelValidatorProviderTest.cs
DefaultModelClientValidatorProviderTest.cs Removed use of LINQ and added some optimizations in ValidationVisitor 2015-11-06 11:56:52 -08:00
MaxLengthAttributeAdapterTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
Microsoft.AspNet.Mvc.DataAnnotations.Test.xproj
MinLengthAttributeAdapterTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
ModelMetadataProviderTest.cs Support user overrides of three more framework-provided `ModelState`-related messages 2016-01-20 21:14:33 -08:00
NumericClientModelValidatorTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
RangeAttributeAdapterTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
RequiredAttributeAdapterTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
Resources.resx
StringLengthAttributeAdapterTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
TestModelNameProvider.cs
TestResources.cs Changes to use moq-netcore 2015-11-25 16:04:04 -08:00
ValidationAttributeAdapterOfTAttributeTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
ValidationAttributeAdapterProviderTest.cs * Parameters into the messages 2015-12-11 12:05:44 -08:00
project.json Changes to use moq-netcore 2015-11-25 16:04:04 -08:00