aspnetcore/test/Microsoft.AspNetCore.Mvc.Da.../Internal
Doug Bunting fc3a815e57
Restore `ModelMetadata.PropertyName != null` behaviour
- #7413 part 2 of 2
- add `ModelMetadata.Name` and `ParameterName`
  - use `Name` instead of `PropertyName` in most cases
- update `ModelMetadata.ContainerType` and other property use
  - choose using `MetadataKind` almost everywhere; support all possibilties
    - usually parameter metadata was possible but not handled
    - worst case was one or two potential NREs, especially `ContainerType.*` dereferences
  - improve `MvcCoreLoggerExtensions` metadata handling
    - add three new debug messages, one for type metadata and two for parameter metadata
- update `ModelMetadata.ContainerMetadata`, `ContainerType` and `PropertyName` doc comments
- no changes needed in Microsoft.AspNetCore.Mvc.ViewFeatures because parameters aren't viewed

nits:
- add missing `TestModelMetadataProvider.ForParameter(...)` method
- remove unused `EmptyModelMetadataProvider` instances in `ModelMetadataTest`
- refactor `ModelValidationResultComparer` out of DataAnnotationsModelValidatorTest`
- take VS suggestions, mostly related to variable inlining and object initializers
2018-03-29 07:22:00 -07:00
..
CompareAttributeAdapterTest.cs
DataAnnotationsClientModelValidatorProviderTest.cs Remove TestOptionsManager 2017-10-30 17:49:15 -07:00
DataAnnotationsMetadataProviderTest.cs Add `DisplayMetadata.NullDisplayTextProvider` and similar properties 2018-01-09 09:01:57 -08:00
DataAnnotationsModelValidatorProviderTest.cs Remove TestOptionsManager 2017-10-30 17:49:15 -07:00
DataAnnotationsModelValidatorTest.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
DataMemberRequiredBindingMetadataProviderTest.cs Support validation and BindBehavior on top-level action parameters and bound properties. Fixes #6790 2017-09-22 10:13:48 +01:00
DataTypeClientModelValidatorProviderTest.cs
DefaultModelClientValidatorProviderTest.cs
FileExtensionsAttributeAdapterTest.cs Fixed FileExtensionsAttributeAdapter to trim(whitespaces, dot character) and lowercase the extensions 2017-09-21 14:52:24 -07:00
MaxLengthAttributeAdapterTest.cs
MinLengthAttributeAdapterTest.cs
ModelMetadataProviderTest.cs Remove TestOptionsManager 2017-10-30 17:49:15 -07:00
ModelValidationResultComparer.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
MvcDataAnnotationsMvcOptionsSetup.cs Remove TestOptionsManager 2017-10-30 17:49:15 -07:00
NumericClientModelValidatorTest.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
RangeAttributeAdapterTest.cs
RequiredAttributeAdapterTest.cs
StringLengthAttributeAdapterTest.cs
TestModelNameProvider.cs
TestResources.cs
ValidatableObjectAdapterTest.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
ValidationAttributeAdapterOfTAttributeTest.cs
ValidationAttributeAdapterProviderTest.cs