aspnetcore/test/Microsoft.AspNetCore.Mvc.In...
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
..
Models
…
ActionParametersIntegrationTest.cs
…
ArrayModelBinderIntegrationTest.cs
…
AuthorizeFilterIntegrationTest.cs
…
BindPropertyIntegrationTest.cs Making Pages Binding Consistent 2017-06-26 18:11:44 -07:00
BinderTypeBasedModelBinderIntegrationTest.cs Remove TaskCache and TaskCacheOfT 2017-06-08 08:19:20 -07:00
BindingSourceMetadataProviderIntegrationTest.cs
…
BodyValidationIntegrationTests.cs Make [FromBody] treat empty request bodies as invalid (#4750) 2017-04-10 16:55:14 +01:00
ByteArrayModelBinderIntegrationTest.cs
…
CancellationTokenModelBinderIntegrationTest.cs Upgrade test framework versions and fix test issues 2017-05-15 14:11:27 -07:00
CollectionModelBinderIntegrationTest.cs
…
CompanyNameAttribute.cs
…
ComplexTypeModelBinderIntegrationTest.cs Upgrade test framework versions and fix test issues 2017-05-15 14:11:27 -07:00
DictionaryModelBinderIntegrationTest.cs
…
ExcludeBindingMetadataProviderIntegrationTest.cs Fixing ExcludeBindingMetadataProvider unit test (#6113) 2017-04-27 11:42:06 -07:00
FormCollectionModelBindingIntegrationTest.cs
…
FormFileModelBindingIntegrationTest.cs
…
GenericModelBinderIntegrationTest.cs Remove TaskCache and TaskCacheOfT 2017-06-08 08:19:20 -07:00
HeaderModelBinderIntegrationTest.cs
…
KeyValuePairModelBinderIntegrationTest.cs Replace IModelBindingMessageProvider with new highly-virtual base class (#6241) 2017-05-10 16:02:18 +01:00
Microsoft.AspNetCore.Mvc.IntegrationTests.csproj Return to NetStandard 2017-05-25 10:34:16 -07:00
ModelBindingTestContext.cs Make [FromBody] treat empty request bodies as invalid (#4750) 2017-04-10 16:55:14 +01:00
ModelBindingTestHelper.cs Make [FromBody] treat empty request bodies as invalid (#4750) 2017-04-10 16:55:14 +01:00
ModelPrefixSelectionIntegrationTest.cs
…
ParameterBinderExtensions.cs
…
ProductValidatorAttribute.cs
…
ServicesModelBinderIntegrationTest.cs
…
SimpleTypeModelBinderIntegrationTest.cs Do not include type names in `ModelState` error messages 2017-06-28 15:16:23 -07:00
TestMvcOptions.cs
…
TryUpdateModelIntegrationTest.cs
…
TryValidateModelIntegrationTest.cs Revert "Skipping model validation tests temporarily to unblock mirror" 2017-04-03 17:13:49 -07:00
ValidationIntegrationTests.cs Do not include type names in `ModelState` error messages 2017-06-28 15:16:23 -07:00