aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test
Ryan Nowak f5e7a69693 Updates to the extensibility for validator providers
This change removes reflection from validator providers, and instead
relies on cached metadata in in the modelmetadata.

In general this means that our MVPs don't need to cache anything, they
just look at the metadata and create what they need.

In the case of data-annotations, we update the model details provider to
add validation attributes to the modelmetadata. This would allow someone
to replace the DataAnnotationsValidatorProvider, but still use the
metadata in these attributes.

The change to the IModelValidatorProvider api (to use a context) is
intended to minimize allocations. Currently each validator provider needs
to return a list so you end up with N+1 lists (N validators + a final list
to compine them all). This change will let us just create the final list
(and a small context object). This is a very very high traffic API so it
seemed worth doing.

There's also some general massaging of namespaces and file locations.
2015-03-20 15:19:25 -07:00
..
ActionResults
AntiXsrf
ApplicationModel Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
Description Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
Filters
Formatters
Internal React to hosting changes 2015-03-19 11:07:25 -07:00
Logging
OptionDescriptors Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
ParameterBinding Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
Properties
Rendering Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
Routing React to #154 (Routing - adding data token to GetVirtualPath) 2015-03-19 21:51:14 -07:00
TestFiles
Utils
ViewComponents Refactor of ViewComponent extensibility 2015-03-20 13:39:54 -07:00
ActionConstraintValuesTest.cs
ActionDescriptorValuesTest.cs
ActionExecutorTests.cs
ActionModelValuesTest.cs
ApiExplorerModelValuesTest.cs
AttributeRouteInfoValuesTest.cs
AttributeRouteModelValuesTest.cs
BodyModelBinderTests.cs Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
ConsumesAttributeTests.cs
ControllerActionDescriptorBuilderTest.cs
ControllerActionDescriptorProviderTests.cs Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
ControllerActionInvokerTest.cs Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
ControllerModelValuesTest.cs
ControllerTests.cs Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
ControllerUnitTestabilityTests.cs
DefaultActionDescriptorCollectionProviderLoggingTest.cs
DefaultActionSelectorSelectAsyncValuesTest.cs
DefaultActionSelectorTests.cs
DefaultAssemblyProviderTests.cs List of assembly names in DefaultAssemblyProvider needs to be kept up to date 2015-03-20 11:38:43 -07:00
DefaultControllerActivatorTest.cs
DefaultControllerFactoryTest.cs Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
DefaultControllerTypeProviderTest.cs
DefaultInputFormatterSelectorTests.cs
FilterDescriptorValuesTest.cs
FilterValuesTest.cs
FormatterMappingsTest.cs
HttpMethodProviderAttributesTests.cs
JsonResultTest.cs
KnownRouteValueConstraintTests.cs
Microsoft.AspNet.Mvc.Core.Test.xproj
MockModelBinderProvider.cs
MockModelValidatorProviderProvider.cs Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
MockMvcOptionsAccessor.cs
MockScopedInstance.cs
MockValueProviderFactoryProvider.cs
MvcOptionsTests.cs
MvcRouteHandlerTests.cs
RemoteAttributeTest.cs Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
RequireHttpsAttributeTests.cs
RouteConstraintProviderValuesTest.cs
RouteDataActionConstraintTest.cs
RouteDataActionConstraintValuesTest.cs
RouteTemplateProviderAttributesTest.cs
ScopedInstanceTest.cs
SerializableErrorWrapperTests.cs
ServiceBasedControllerActivatorTest.cs
SessionStateTempDataProviderTest.cs [Fixes #2157] Added additional functional tests for TempData 2015-03-19 15:55:23 -07:00
TempDataDictionaryTest.cs
TestController.cs
TestGlobalFilterProvider.cs
TestValueProvider.cs
TypeHelperTest.cs
UrlHelperTest.cs React to #154 (Routing - adding data token to GetVirtualPath) 2015-03-19 21:51:14 -07:00
ViewComponentTests.cs
ViewDataDictionaryOfTModelTest.cs
ViewDataDictionaryTest.cs
project.json