Beispiel #1
0
 public ArticleCommentsController(
     ClaimAccessor claimAccessor,
     IArticleCommentsService ArticleCommentsService
     )
 {
     _claimAccessor          = claimAccessor;
     _articleCommentsService = ArticleCommentsService;
 }
        public ArticleCommentsServiceTests()
        {
            this.InitializeMapper();
            this.InitializeDatabaseAndRepositories();
            this.InitializeFields();

            this.articleCommentsService = new ArticleCommentsService(this.articleCommentsRepository);
        }
 public ArticleCommentsController(
     IArticleCommentsService articleCommentsService,
     UserManager <CookingHubUser> userManager,
     IArticlesService articlesService,
     ICategoriesService categoriesService)
 {
     this.articleCommentsService = articleCommentsService;
     this.userManager            = userManager;
     this.articlesService        = articlesService;
     this.categoriesService      = categoriesService;
 }
Beispiel #4
0
 public ArticlesController(IArticlesService articlesService, IArticleCommentsService commentsService)
 {
     _articlesService = articlesService;
     _commentsService = commentsService;
 }