public void TestsSetup() { AutoMapperConfig.RegisterMappings(); this.articles = ServicesObjectFactory.GetArticlesService(); this.controller = new ArticlesController(this.articles); this.controller.Cache = new HttpCacheService(); }
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); }