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 Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
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 Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
AntiforgeryTestHelper.cs Update `DefaultHtmlGenerator.GenerateAntiforgery()` to match latest `IAntiforgery.GetHtml()` 2015-11-25 09:49:15 -08:00
AntiforgeryTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ApiExplorerTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ApplicationModelTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
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 Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CompilationOptionsTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CompositeViewEngineTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ConsumesAttributeTests.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
ContentNegotiationTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ControllerDiscoveryConventionTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ControllerFromServicesTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
CorsMiddlewareTests.cs React to Cors api review changes 2015-10-15 13:05:08 -07:00
CorsTests.cs Make Cors filters run before any other authorization filters 2015-11-18 10:51:49 -08:00
CustomRouteTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CustomUrlHelperTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
DefaultOrderTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
DefaultValuesTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
DirectivesTest.cs Allow @model specified in a page work with @inherits directive in 2015-09-23 12:10:10 -07:00
ErrorPageTests.cs Add temporary workarounds for aspnet/External#50 and aspnet/Mvc#3587 2015-11-19 15:50:00 -08:00
ExceptionInfo.cs Fixed typo (occured to occurred) in comments and resources. 2015-09-29 10:19:26 -07:00
FileResultTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
FilteredDefaultAssemblyProviderFixtureOfT.cs Content negotiation fails in subsequent requests accepting same media type 2015-10-30 14:10:31 -07:00
FiltersTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
FlushPointTest.cs Remove `WaitService` 2015-10-28 15:47:16 -07:00
FormatFilterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
HtmlGenerationTest.cs Add temporary workarounds for aspnet/External#50 and aspnet/Mvc#3587 2015-11-19 15:50:00 -08:00
HtmlHelperOptionsTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
HttpResponseMessageExceptions.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
InlineConstraintTests.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
InputFormatterTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
InputObjectValidationTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
JsonOutputFormatterTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
JsonPatchTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
JsonResultTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
LinkGenerationTests.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
LocalizationTest.cs * Adding test 2015-11-04 13:55:02 -08:00
Microsoft.AspNet.Mvc.FunctionalTests.xproj
ModelBindingBindingBehaviorTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingDataMemberRequiredTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingFromFormTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingFromHeaderTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
ModelBindingFromQueryTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingFromRouteTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingModelBinderAttributeTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingTest.cs Use `ModelMetadata.GetDisplayName()` in error message replacing `FormatException` and `OverflowException` 2015-10-22 15:50:36 -07:00
ModelMetadataAttributeTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
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 Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
OutputFormatterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
PrecompilationTest.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
RazorEmbeddedViewsTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RazorFileSystemCaseSensitivityTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RazorPageExecutionInstrumentationTest.cs Simplify instrumentation confirmations in `RazorPageExecutionInstrumentationTest` 2015-10-28 16:45:30 -07:00
RazorViewLocationSpecificationTest.cs Add relative view path support 2015-11-18 15:59:11 -08:00
RemoteAttributeValidationTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
RequestServicesTest.cs Limit [FromServices] to apply only to parameters 2015-11-17 16:41:04 -08:00
RespectBrowserAcceptHeaderTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
ResponseCacheTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RoundTripTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RouteDataTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
RoutingLowercaseUrlTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RoutingTests.cs Remove Magic Link Generation 2015-11-30 11:24:23 -08:00
SerializableErrorTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
StreamOutputFormatterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
TagHelperSampleTest.cs Add temporary workarounds for aspnet/External#50 and aspnet/Mvc#3587 2015-11-19 15:50:00 -08:00
TagHelpersTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
TempDataTest.cs Move less-commonly used types out of .Rendering 2015-09-16 23:52:29 -07:00
TestApplicationEnvironment.cs React to dnx confguration change 2015-11-24 11:54:10 -08:00
TryValidateModelTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
UrlResolutionTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ValueProviderTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
VersioningTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ViewComponentTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ViewEngineTests.cs Switch concepts from misnamed `isPartial` to `isMainPage` 2015-11-18 15:59:37 -08:00
WebApiCompatShimActionResultTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
WebApiCompatShimActionSelectionTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
WebApiCompatShimBasicTest.cs Content negotiation fails in subsequent requests accepting same media type 2015-10-30 14:10:31 -07:00
WebApiCompatShimParameterBindingTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlDataContractSerializerInputFormatterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlOutputFormatterTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
XmlSerializerFormattersWrappingTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlSerializerInputFormatterTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
project.json Changes to use moq-netcore 2015-11-25 16:04:04 -08:00