aspnetcore/test/Microsoft.AspNetCore.Mvc.Da.../Internal
Doug Bunting e0e96ce53b
Include parameter type's attributes in ModelMetadata
- #7595
- #7595 relates to #7350 but does not have the same root cause
  - did _not_ revert the src changes in #7350 fix (d995b0418a)
- make non-`[Obsolete]` `ModelAttributes` constructor overload `internal`
  - should generally use `static` methods and not any constructor
  - change some unit tests to use `[Obsolete]` constructor overloads (with suppressions)
- fix test `ParameterBinderExtensions` to use current `ParameterBinder.BindModelAsync(...)` overload
  - found some tests updated `IModelMetadataProvider`, `MvcOptions`, etc. instances but didn't register them in DI
- extend `ModelBindingTestHelper` and `ModelBindingTestContext`
  - reorder some tests to use correct `MvcOptions` and `IModelMetadataProvider` everywhere
  - fixes above issues

nits:
- take a few VS suggestions
- remove an old comment indended only for PR "Reviewers:"
2018-04-17 12:40:38 -07:00
..
CompareAttributeAdapterTest.cs
DataAnnotationsClientModelValidatorProviderTest.cs
DataAnnotationsMetadataProviderTest.cs Include parameter type's attributes in ModelMetadata 2018-04-17 12:40:38 -07:00
DataAnnotationsModelValidatorProviderTest.cs
DataAnnotationsModelValidatorTest.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
DataMemberRequiredBindingMetadataProviderTest.cs Include parameter type's attributes in ModelMetadata 2018-04-17 12:40:38 -07:00
DataTypeClientModelValidatorProviderTest.cs
DefaultModelClientValidatorProviderTest.cs
FileExtensionsAttributeAdapterTest.cs
MaxLengthAttributeAdapterTest.cs
MinLengthAttributeAdapterTest.cs
ModelMetadataProviderTest.cs Include parameter type's attributes in ModelMetadata 2018-04-17 12:40:38 -07:00
ModelValidationResultComparer.cs Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
MvcDataAnnotationsMvcOptionsSetup.cs
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