コード例 #1
0
 public ArticleController(IArticleService articleService, IRubricService rubricService, IImageService imageService, ITagService tagService)
 {
     this.articleService = articleService;
     this.rubricService = rubricService;
     this.imageService = imageService;
     this.tagService = tagService;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public SitemapController(IArticleService articleService, IRubricService rubricService)
 {
     this.articleService = articleService;
     this.rubricService = rubricService;
 }
コード例 #4
0
 public RubricsController(IRubricService rubricService)
 {
     this.rubricService = rubricService;
 }
コード例 #5
0
 public RubricController(IRubricService rubricService, IArticleService articleService)
 {
     this.rubricService = rubricService;
     this.articleService = articleService;
 }