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;
        }
Beispiel #2
0
        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;
        }