IHttpHandler IRouteHandler.GetHttpHandler(RequestContext requestContext)
 {
     //This wires umbraco bits up
     var mvcHandler = base.GetHttpHandler(requestContext);
     
     //use the page route handler to render webforms
     var pageHandler = new PageRouteHandler("~/Views/Search/Search.aspx", false);
     return pageHandler.GetHttpHandler(requestContext);
 }
        public void Should_Resolve_Route_AreaName_Correctly()
        {
            var dictionary = new RouteValueDictionary();
            dictionary["area"] = "TestAreaName";
            var handler = new PageRouteHandler("~/Views");
            var route = new Route("url", null, null, dictionary, handler);
            var routeData = new RouteData(route, handler);

            var areaName = routeData.GetAreaName();
            Assert.AreEqual(areaName, "TestAreaName");
        }