aspnetcore/test/Microsoft.AspNetCore.Mvc.Fo...
Doug Bunting a90f4118ad Do not include type names in `ModelState` error messages
- #6076
- add resources and accessors specifically for the element / parameter cases
- avoid `metadata.GetDisplayName()` where possible
- fill in the `ValidationContext` that `ValidatorObjectAdapter` uses
  - e.g. `Validate_NestedComplexType_IValidatableObject_Invalid()` test fails without this

Possible future work:
- improve error message used for `ModelMetadata.IsRequired` elements and parameters
- use something besides the type for `ValidationContext.DisplayName` of elements and parameters

nits:
- trailing whitespace
- use more `out var`
2017-06-28 15:16:23 -07:00
..
Internal
JsonInputFormatterTest.cs Do not include type names in `ModelState` error messages 2017-06-28 15:16:23 -07:00
JsonOutputFormatterTests.cs
JsonPatchInputFormatterTest.cs
JsonPatchOperationsArrayProviderTests.cs
JsonResultTest.cs
Microsoft.AspNetCore.Mvc.Formatters.Json.Test.csproj