Exemplo n.º 1
0
 public ArticleAppService(IArticleRepository repository,
                          IArticleContentRepository articleContentRepository,
                          IArticleFavoriteRepository articleFavoriteRepository,
                          IArticleLikeRepository articleLikeRepository,
                          IArticleCommonAppService articleCommonAppService)
 {
     _repository = repository;
     _articleContentRepository  = articleContentRepository;
     _articleFavoriteRepository = articleFavoriteRepository;
     _articleLikeRepository     = articleLikeRepository;
     _articleCommonAppService   = articleCommonAppService;
 }
Exemplo n.º 2
0
 public ArticleBusiness(
     IArticleRepository articleRepository,
     IArticleContentRepository articleContentRepository,
     IArticleTagRepository articleTagRepository,
     IArticleCategoryRepository articleCategoryRepository,
     ITagRepository tagRepository,
     ICategoryRepository categoryRepository
     )
 {
     BaseRepository             = articleRepository;
     _articleRepository         = articleRepository;
     _articleContentRepository  = articleContentRepository;
     _articleTagRepository      = articleTagRepository;
     _articleCategoryRepository = articleCategoryRepository;
     _tagRepository             = tagRepository;
     _categoryRepository        = categoryRepository;
 }