aspnetcore/test/Microsoft.AspNetCore.Mvc.Te...
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
..
CommonFilterTest.cs
CommonResourceInvokerTest.cs Introduce IAlwaysRunResultFilter \ IAsyncAlwaysRunResultFilter (#7120) 2017-12-22 10:52:52 -08:00
HtmlContentUtilities.cs
HtmlGeneratorUtilities.cs Support input type "week" (#7045) 2017-11-16 16:00:15 -08:00
MediaTypeAssert.cs
Microsoft.AspNetCore.Mvc.TestCommon.csproj Improving logging - model binding 2018-01-11 14:51:53 -08:00
NonSeekableReadableStream.cs
PlatformNormalizer.cs
ResourceFile.cs
SimpleValueProvider.cs
SimpleValueProviderFactory.cs
SolutionPathUtility.cs
TestClientModelValidatorProvider.cs Remove TestOptionsManager 2017-10-30 17:49:15 -07:00
TestDirectoryContent.cs
TestDirectoryFileInfo.cs
TestFileChangeToken.cs Add support for areas to Razor Pages 2017-12-19 15:03:05 -08:00
TestFileInfo.cs
TestFileProvider.cs Some cleanup around FileProviderRazorProject with tests 2018-01-21 21:38:25 -08:00
TestHttpRequestStreamReaderFactory.cs Move `IHttpRequestStreamReaderFactory` from `.Internal` to `.Infrastructure` 2018-01-09 10:51:09 -08:00
TestHttpResponseStreamWriterFactory.cs Move `IHttpRequestStreamReaderFactory` from `.Internal` to `.Infrastructure` 2018-01-09 10:51:09 -08:00
TestModelBinderFactory.cs [Fixes #5859] Consider allowing binding header values to types other than string and string collections 2018-01-30 11:47:16 -08:00
TestModelMetadataProvider.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
TestModelValidatorProvider.cs Remove TestOptionsManager 2017-10-30 17:49:15 -07:00
TestRazorCompiledItem.cs Add support for recompilation 2018-01-08 15:26:20 -08:00
TestViewBufferScope.cs
ValidationAttributeUtil.cs