aspnetcore/test/Microsoft.AspNetCore.Mvc.Co...
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
..
ApplicationModel Error message for [ApiController] without attribute route needs to be better 2018-01-25 10:25:52 -08:00
ApplicationParts Make the use of Assembly.CodeBase more robust 2018-03-23 09:35:55 -07:00
Authorization Use compatibility switch for auth filters 2018-01-11 17:42:32 -08:00
Builder
Controllers
DependencyInjection Add support for running conventions on controller properties, Razor Page parameter and properties 2018-01-29 11:43:25 -08:00
Filters
Formatters Addressed review feedback 2018-02-01 14:44:06 -08:00
Infrastructure Compatibility switches (#7142) 2017-12-28 09:43:24 -08:00
Internal Add mapping service for action results 2018-03-27 17:13:41 -07:00
ModelBinding Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
Properties
Routing Add support for areas to Razor Pages 2017-12-19 15:03:05 -08:00
AcceptedAtActionResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
AcceptedAtRouteResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
AcceptedResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
ActionResultOfTTest.cs
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
BindAttributeTest.cs
ChallengeResultTest.cs
ConflictObjectResultTest.cs
ConflictResultTest.cs
ConsumesAttributeTests.cs
ContentResultTest.cs
ControllerBaseTest.cs Improving logging - model binding 2018-01-11 14:51:53 -08:00
CreatedAtActionResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
CreatedAtRouteResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
CreatedResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
EmptyResultTests.cs
FileContentResultTest.cs
FileResultTest.cs Use weak comparison for If-None-Match header (#7237) 2018-01-12 12:40:51 -08:00
FileStreamResultTest.cs
FlushReportingStream.cs
ForbidResultTest.cs
HttpNotFoundObjectResultTest.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
HttpNotFoundResultTests.cs
HttpOkObjectResultTest.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
HttpOkResultTest.cs
HttpStatusCodeResultTests.cs
HttpUnauthorizedResultTests.cs
LocalRedirectResultTest.cs
MediaTypeCollectionTest.cs
Microsoft.AspNetCore.Mvc.Core.Test.csproj Update samples and tests to target netcoreapp2.1 2017-11-13 14:58:40 -08:00
MvcOptionsTest.cs
NonDisposableStreamTest.cs
ObjectResultTests.cs Refactor content negotiation code into a service (#6998) 2017-10-31 16:32:37 -07:00
PhysicalFileResultTest.cs
ProducesAttributeTests.cs
RedirectResultTest.cs
RedirectToActionResultTest.cs
RedirectToPageResultTest.cs
RedirectToRouteResultTest.cs
RequestFormLimitsAttributeTest.cs
RequireHttpsAttributeTests.cs
ResponseCacheAttributeTest.cs Improve logging - individual filters 2017-12-18 13:16:06 -08:00
SerializableErrorTests.cs
SignInResultTest.cs
SignOutResultTest.cs
TestApplicationPart.cs
TestFeatureProvider.cs
UnprocessableEntityObjectResultTests.cs
UnprocessableEntityResultTests.cs
ValidationProblemDetailsTest.cs Smooth rough ApiBehavior edges 2018-01-22 09:53:21 -08:00
VirtualFileResultTest.cs
xunit.runner.json