aspnetcore/test/Microsoft.AspNetCore.Mvc.Co.../ApplicationModels
Ryan Nowak 1521f9298b Relayer action discovery infrastructure
This change introduces a service facade for creating the application
model, running conventions, validating the result, and flattening the
model.

This is used in the ControllerActionDescriptorProvider and provides the
existing functionality for now. The ControllerActionDescriptorProvider
will process the results and turn each 'flattened' model into a single
action descriptor.

The next change will introduce another consumer of this service, that
turns the 'flattened' model into an EndpointModel so that it can be
exposed via Endpoint Routing's convention system.

---

The main considerations here:

The flattening semantics of application model are pretty complicated :(

The validation that CADP does is actually pretty in depth and might be
really low value... Errors with writing route templates do happen, and
those will be caught by the routing system eventually.... Errors with
duplicate route names are similar... Errors with 'mixed' attribute and
conventional routing are not at all common. I don't think I've ever seen
an issue get filed about this. I did the work to port all of this stuff
forward but I'm not totally sure it's valuable - however, I don't really
want to make an argument for its removal. These are just some random
thoughts to keep in mind if you're reviewing this 👍
2018-11-20 11:03:37 -08:00
..
ActionModelTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ApiBehaviorApplicationModelProviderTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ApiConventionApplicationModelConventionTest.cs
ApiVisibilityConventionTest.cs
AttributeRouteModelTests.cs
AuthorizationApplicationModelProviderTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ClientErrorResultFilterConventionTest.cs
ConsumesConstraintForFormFileParameterConventionTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ControllerActionDescriptorBuilderTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ControllerActionDescriptorProviderTests.cs Relayer action discovery infrastructure 2018-11-20 11:03:37 -08:00
ControllerModelTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
DefaultApplicationModelProviderTest.cs Relayer action discovery infrastructure 2018-11-20 11:03:37 -08:00
InferParameterBindingInfoConventionTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
InvalidModelStateFilterConventionTest.cs
ParameterModelTest.cs
PropertyModelTest.cs
RouteTokenTransformerConventionTest.cs