aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
Ryan Nowak 6875ee55d3 Remove Magic Link Generation
This change resolves #3512 and #3636 by removing 'magic' link generation
and adding an extension method to add routes to areas correctly using the new
pattern. This is pretty much exactly the same as how MapWebApiRoute works.

For site authors, we recommend adding area-specific routes in a way that
includes a default AND constraint for the area. Put your most specific
(for link generation) routes FIRST.

Ex:

  routes.MapRoute(
      "Admin/{controller}/{action}/{id?}",
      defaults: new { area = "Admin" },
      constraints: new { area = "Admin" });

The bulk of the changes here are to tests that unwittingly relied on the
old behavior.
2015-11-30 11:24:23 -08:00
..
Logging
compiler/resources Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
ActionResultTests.cs [Fixes #3177] Clean up logic for encoding in ViewResult and friends 2015-11-06 10:44:09 -08:00
ActivatorTests.cs
AntiforgeryTestHelper.cs Update `DefaultHtmlGenerator.GenerateAntiforgery()` to match latest `IAntiforgery.GetHtml()` 2015-11-25 09:49:15 -08:00
AntiforgeryTests.cs
ApiExplorerTest.cs
ApplicationModelTest.cs
BasicTests.cs [Fixes #3503] Removing formatters on a given type only works on collections in MVC options 2015-11-18 09:56:44 -08:00
BestEffortLinkGenerationTest.cs
CompilationOptionsTests.cs
CompositeViewEngineTests.cs
ConsumesAttributeTests.cs
ContentNegotiationTest.cs
ControllerDiscoveryConventionTests.cs
ControllerFromServicesTests.cs
CorsMiddlewareTests.cs
CorsTests.cs Make Cors filters run before any other authorization filters 2015-11-18 10:51:49 -08:00
CustomRouteTest.cs
CustomUrlHelperTests.cs
DefaultOrderTest.cs
DefaultValuesTest.cs
DirectivesTest.cs
ErrorPageTests.cs Add temporary workarounds for aspnet/External#50 and aspnet/Mvc#3587 2015-11-19 15:50:00 -08:00
ExceptionInfo.cs
FileResultTests.cs
FilteredDefaultAssemblyProviderFixtureOfT.cs Content negotiation fails in subsequent requests accepting same media type 2015-10-30 14:10:31 -07:00
FiltersTest.cs
FlushPointTest.cs
FormatFilterTest.cs
HtmlGenerationTest.cs Add temporary workarounds for aspnet/External#50 and aspnet/Mvc#3587 2015-11-19 15:50:00 -08:00
HtmlHelperOptionsTest.cs
HttpResponseMessageExceptions.cs
InlineConstraintTests.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
InputFormatterTests.cs
InputObjectValidationTests.cs
JsonOutputFormatterTests.cs
JsonPatchTest.cs
JsonResultTest.cs
LinkGenerationTests.cs
LocalizationTest.cs * Adding test 2015-11-04 13:55:02 -08:00
Microsoft.AspNet.Mvc.FunctionalTests.xproj
ModelBindingBindingBehaviorTest.cs
ModelBindingDataMemberRequiredTest.cs
ModelBindingFromFormTest.cs
ModelBindingFromHeaderTest.cs
ModelBindingFromQueryTest.cs
ModelBindingFromRouteTest.cs
ModelBindingModelBinderAttributeTest.cs
ModelBindingTest.cs
ModelMetadataAttributeTest.cs
MvcEncodedTestFixtureOfT.cs React to WebEncoders changes. 2015-10-30 17:59:19 -07:00
MvcSandboxTest.cs * Remove MvcSample and replace with MvcSandbox 2015-11-23 11:53:48 -08:00
MvcTestFixture.cs React to hosting changes 2015-11-19 16:12:50 -08:00
MvcTestFixtureOfT.cs
OutputFormatterTest.cs
PrecompilationTest.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
RazorEmbeddedViewsTest.cs
RazorFileSystemCaseSensitivityTest.cs
RazorPageExecutionInstrumentationTest.cs
RazorViewLocationSpecificationTest.cs Add relative view path support 2015-11-18 15:59:11 -08:00
RemoteAttributeValidationTest.cs
RequestServicesTest.cs Limit [FromServices] to apply only to parameters 2015-11-17 16:41:04 -08:00
RespectBrowserAcceptHeaderTests.cs
ResponseCacheTest.cs
RoundTripTests.cs
RouteDataTest.cs
RoutingLowercaseUrlTest.cs
RoutingTests.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
SerializableErrorTests.cs
StreamOutputFormatterTest.cs
TagHelperSampleTest.cs Add temporary workarounds for aspnet/External#50 and aspnet/Mvc#3587 2015-11-19 15:50:00 -08:00
TagHelpersTest.cs
TempDataTest.cs
TestApplicationEnvironment.cs React to dnx confguration change 2015-11-24 11:54:10 -08:00
TryValidateModelTest.cs
UrlResolutionTest.cs
ValueProviderTest.cs
VersioningTests.cs
ViewComponentTests.cs
ViewEngineTests.cs Switch concepts from misnamed `isPartial` to `isMainPage` 2015-11-18 15:59:37 -08:00
WebApiCompatShimActionResultTest.cs
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs Content negotiation fails in subsequent requests accepting same media type 2015-10-30 14:10:31 -07:00
WebApiCompatShimParameterBindingTest.cs
XmlDataContractSerializerFormattersWrappingTest.cs
XmlDataContractSerializerInputFormatterTest.cs
XmlOutputFormatterTests.cs
XmlSerializerFormattersWrappingTest.cs
XmlSerializerInputFormatterTests.cs
project.json Changes to use moq-netcore 2015-11-25 16:04:04 -08:00