public ArticleController(IArticleService articleService, IRubricService rubricService, IImageService imageService, ITagService tagService) { this.articleService = articleService; this.rubricService = rubricService; this.imageService = imageService; this.tagService = tagService; }
public void Load() { uow = new Mock <IUnitOfWork>(); rubricRepository = new Mock <IRepository <Rubric> >(); uow.Setup(x => x.Rubrics).Returns(rubricRepository.Object); rubricService = new RubricService(uow.Object); }
public SitemapController(IArticleService articleService, IRubricService rubricService) { this.articleService = articleService; this.rubricService = rubricService; }
public RubricsController(IRubricService rubricService) { this.rubricService = rubricService; }
public RubricController(IRubricService rubricService, IArticleService articleService) { this.rubricService = rubricService; this.articleService = articleService; }