aspnetcore/test/Microsoft.AspNetCore.Mvc.Co.../ModelBinding
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
..
Binders Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
Internal
Metadata
Validation
BindingSourceValueProviderTest.cs
CompositeValueProviderTest.cs Do not bind `"[index]"` in `CollectionModelBinder` subsetting feature 2018-03-19 12:53:05 -07:00
DefaultModelBindingContextTest.cs
EnumerableValueProviderTest.cs Do not bind `"[index]"` in `CollectionModelBinder` subsetting feature 2018-03-19 12:53:05 -07:00
FormValueProviderFactoryTest.cs
FormValueProviderTest.cs
JQueryFormValueProviderFactoryTest.cs
JQueryFormValueProviderTest.cs Do not bind `"[index]"` in `CollectionModelBinder` subsetting feature 2018-03-19 12:53:05 -07:00
JQueryQueryStringValueProviderFactoryTest.cs
JQueryQueryStringValueProviderTest.cs Do not bind `"[index]"` in `CollectionModelBinder` subsetting feature 2018-03-19 12:53:05 -07:00
ModelBinderFactoryTest.cs
ModelBinderProviderExtensionsTest.cs
ModelBindingHelperTest.cs
ModelBindingResultTest.cs
ParameterBinderTest.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
QueryStringValueProviderFactoryTest.cs
QueryStringValueProviderTest.cs
RouteValueProviderTests.cs
StubModelBinder.cs
TestModelBinderProviderContext.cs
TestValueProvider.cs
UnsupportedContentTypeFilterTest.cs
ValueProviderFactoryExtensionsTest.cs