private static ViewPageController GetViewPageController(MockHttpContext httpContext) { var post = MockObjectFactory.CreatePostRepository(); var cacheService = MockObjectFactory.CreateCacheService(); var settings = new MockSettings(); var user = MockObjectFactory.CreateUserRepository(); var pageController = new ViewPageController(post, user, settings, cacheService) { Url = new UrlHelper(httpContext.Request.RequestContext, RouteTable.Routes) }; return pageController; }
private static ViewPageController GetViewPageController() { var post = MockObjectFactory.CreatePostRepository(); var cacheService = MockObjectFactory.CreateCacheService(); var settings = new MockSettings(); var user = MockObjectFactory.CreateUserRepository(); var pageController = new ViewPageController(post, user, settings, cacheService); return pageController; }