aspnetcore/test/Microsoft.AspNet.Mvc.Integr...
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
..
Models [Fixes #3624] MVC functional test cleanup (part 2) 2015-12-10 16:26:39 -08:00
ActionParametersIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
ArrayModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
BinderTypeBasedModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
BodyValidationIntegrationTests.cs [Fixes #3624] MVC functional test cleanup (part 2) 2015-12-10 16:26:39 -08:00
ByteArrayModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
CancellationTokenModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
CollectionModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
CompanyNameAttribute.cs [Fixes #3624] MVC functional test cleanup (part 2) 2015-12-10 16:26:39 -08:00
DictionaryModelBinderIntegrationTest.cs Remove IExcludeTypeFilter 2015-12-09 12:30:13 -08:00
FormCollectionModelBindingIntegrationTest.cs React to changes to FormFile 2015-12-04 20:40:39 +01:00
FormFileModelBindingIntegrationTest.cs React to changes to FormFile 2015-12-04 20:40:39 +01:00
GenericModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
HeaderModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
KeyValuePairModelBinderIntegrationTest.cs Remove IExcludeTypeFilter 2015-12-09 12:30:13 -08:00
Microsoft.AspNet.Mvc.IntegrationTests.xproj
ModelBindingTestHelper.cs OptionsModel => Options rename 2015-12-21 15:00:31 -08:00
ModelPrefixSelectionIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
MutableObjectModelBinderIntegrationTest.cs Remove IExcludeTypeFilter 2015-12-09 12:30:13 -08:00
ProductValidatorAttribute.cs [Fixes #3624] MVC functional test cleanup (part 2) 2015-12-10 16:26:39 -08:00
ServicesModelBinderIntegrationTest.cs Adds ActionContext to Validation contexts 2015-11-25 16:38:26 -08:00
SimpleTypeModelBinderIntegrationTest.cs Support user overrides of three more framework-provided `ModelState`-related messages 2016-01-20 21:14:33 -08:00
TestMvcOptions.cs Pool JsonSerializer instances 2016-01-15 16:13:31 -08:00
TryUpdateModelIntegrationTest.cs Remove IExcludeTypeFilter 2015-12-09 12:30:13 -08:00
TryValidateModelIntegrationTest.cs [Fixes #3624] MVC functional test cleanup (part 2) 2015-12-10 16:26:39 -08:00
ValidationIntegrationTests.cs Remove IExcludeTypeFilter 2015-12-09 12:30:13 -08:00
project.json