コード例 #1
0
        public void TestsSetup()
        {
            AutoMapperConfig.RegisterMappings();

            this.articles         = ServicesObjectFactory.GetArticlesService();
            this.controller       = new ArticlesController(this.articles);
            this.controller.Cache = new HttpCacheService();
        }
コード例 #2
0
        public void TestsSetup()
        {
            AutoMapperConfig.RegisterMappings();

            this.recipesServiceMock  = ServicesObjectFactory.GetRecipeService();
            this.imagesServiceMock   = ServicesObjectFactory.GetRecipeImagesService();
            this.articlesServiceMock = ServicesObjectFactory.GetArticlesService();
            this.controller          = new HomeController(this.imagesServiceMock, this.recipesServiceMock, this.articlesServiceMock);
        }