private static RequestContext GetRequestContext()
        {
            HttpContextBase httpcontext = HtmlHelperTest.GetHttpContext("/app/", null, null);
            RouteData       rd          = new RouteData();

            return(new RequestContext(httpcontext, rd));
        }
        private static UrlHelper GetUrlHelper()
        {
            HttpContextBase httpcontext = HtmlHelperTest.GetHttpContext("/app/", null, null);
            RouteCollection rt          = new RouteCollection();

            rt.Add(new Route("{controller}/{action}/{id}", null)
            {
                Defaults = new RouteValueDictionary(new { id = "defaultid" })
            });
            rt.Add("namedroute", new Route("named/{controller}/{action}/{id}", null)
            {
                Defaults = new RouteValueDictionary(new { id = "defaultid" })
            });
            RouteData rd = new RouteData();

            rd.Values.Add("controller", "home");
            rd.Values.Add("action", "oldaction");

            UrlHelper urlHelper = new UrlHelper(new RequestContext(httpcontext, rd), rt);

            return(urlHelper);
        }