aspnetcore/test/Microsoft.AspNetCore.Mvc.Co...
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
..
ActionConstraints Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ApiExplorer Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ApplicationModels Relayer action discovery infrastructure 2018-11-20 11:03:37 -08:00
ApplicationParts Ignore created URI if Assembly.CodeBase contains a fragment (#8556) 2018-10-08 10:41:04 -07:00
Authorization React to AuthorizationMiddleware (#8697) 2018-11-09 07:11:55 +13:00
Builder Zero cost(ish) diagnositcs when disabled 2018-11-18 15:47:55 -08:00
Controllers Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
DependencyInjection Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
Filters Zero cost(ish) diagnositcs when disabled 2018-11-18 15:47:55 -08:00
Formatters Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
Infrastructure Relayer action discovery infrastructure 2018-11-20 11:03:37 -08:00
ModelBinding Ignore empty keys in QueryStringValueProvider 2018-11-18 09:09:01 -08:00
Properties
Routing Fix routing tests (#8718) 2018-11-13 11:01:36 +13:00
AcceptedAtActionResultTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
AcceptedAtRouteResultTests.cs
AcceptedResultTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ActionResultOfTTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ApiConventionMethodAttributeTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ApiConventionTypeAttributeTest.cs Add support for default response (#8028) 2018-07-06 16:44:07 -07:00
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
BindAttributeTest.cs
ChallengeResultTest.cs
ConflictObjectResultTest.cs
ConflictResultTest.cs
ConsumesAttributeTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ContentResultTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
ControllerBaseTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
CreatedAtActionResultTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
CreatedAtRouteResultTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
CreatedResultTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
EmptyResultTests.cs
FileContentResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
FileResultTest.cs Unskip skipped tests 2018-05-29 12:10:59 -07:00
FileStreamResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
FlushReportingStream.cs
ForbidResultTest.cs
HttpNotFoundObjectResultTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
HttpNotFoundResultTests.cs
HttpOkObjectResultTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
HttpOkResultTest.cs
HttpStatusCodeResultTests.cs Add IStatusCodeActionResult (#8265) 2018-08-13 15:39:20 -07:00
HttpUnauthorizedResultTests.cs
LocalRedirectResultTest.cs Integrate Dispatcher's link generator 2018-06-19 04:14:05 -07:00
MediaTypeCollectionTest.cs
Microsoft.AspNetCore.Mvc.Core.Test.csproj Update projects and packages to target netcoreapp3.0 (aspnet/Mvc#8734) 2018-11-16 16:28:35 -08:00
MvcCoreLoggerExtensionsTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
MvcOptionsTest.cs
ObjectResultTests.cs Set ProblemDetails status field during ObjectResult formatting 2018-07-19 17:57:55 -07:00
PhysicalFileResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
ProducesAttributeTests.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
RedirectResultTest.cs Integrate Dispatcher's link generator 2018-06-19 04:14:05 -07:00
RedirectToActionResultTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
RedirectToPageResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
RedirectToRouteResultTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
RequestFormLimitsAttributeTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
RequireHttpsAttributeTests.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ResponseCacheAttributeTest.cs Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal 2018-11-08 14:00:16 -08:00
SerializableErrorTests.cs
ServiceFilterAttributeTest.cs Unwrap filter factories in TypeFilterAttribute & ServiceFilterAttribute 2018-08-24 14:15:40 -07:00
SignInResultTest.cs
SignOutResultTest.cs
TestApplicationPart.cs
TestFeatureProvider.cs
TypeFilterAttributeTest.cs Unwrap filter factories in TypeFilterAttribute & ServiceFilterAttribute 2018-08-24 14:15:40 -07:00
UnprocessableEntityObjectResultTests.cs
UnprocessableEntityResultTests.cs
ValidationProblemDetailsTest.cs Allow passing a dictionary to ValidationProblemDetails 2018-10-29 09:56:17 -07:00
VirtualFileResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
xunit.runner.json