public void TestsSetup() { AutoMapperConfig.RegisterMappings(); this.votes = ServicesObjectFactory.GetVoteService(); this.controller = new VotesController(this.votes); this.controller.Cache = new HttpCacheService(); }
public void TestsSetup() { AutoMapperConfig.RegisterMappings(); this.tagsServiceMock = ServicesObjectFactory.GetTagsService(); this.controller = new TagsController(this.tagsServiceMock); 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); }