public DynamicControllerManager(HttpRequestBase request, ControllerManager controllerManager, IDynamicRepository dynamicRepository, UrlHelper urlHelper) { RequestManager = new RequestManager(request); DynamicEntitySearcher = new DynamicEntitySearcher(RequestManager); RequestManager.QueryStringDictionary = RequestManager.QueryStringDictionary.RouteValueDictionaryTypeCorrection(DynamicEntitySearcher.DynamicEntityMetadata); ControllerManager = controllerManager; DynamicRepository = dynamicRepository; UrlManager = new UrlManager(urlHelper); ReturnUrlCalculator = new ReturnUrlCalculator(UrlManager); }