Skip to content

Instantly share code, notes, and snippets.

@ptsurbeleu
ptsurbeleu / HomeController.cs
Last active December 14, 2015 18:09 — forked from johnnyreilly/DemoAreaRegistration.cs
This is a forked version of John Reilly's gist that has been specifically tailored to bring testability for one of the Controller.Url.RouteUrl overloads. See below some code as an example of how this could done. P.S. Some features has been cut off from the original gist.
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace DemoApp.Controllers
{
public class HomeController : System.Web.Mvc.Controller
{
//....
public ActionResult About()