Ejemplo n.º 1
0
 public CreateCommentCommandHandler(
     IBlogConfig blogConfig, IRepository <PostEntity> postRepo, ICommentModerator moderator, IRepository <CommentEntity> commentRepo)
 {
     _blogConfig  = blogConfig;
     _postRepo    = postRepo;
     _moderator   = moderator;
     _commentRepo = commentRepo;
 }
Ejemplo n.º 2
0
        public CommentService(
            IBlogConfig blogConfig,
            IBlogAudit audit,
            IRepository <CommentEntity> commentRepo,
            IRepository <CommentReplyEntity> commentReplyRepo,
            IRepository <PostEntity> postRepo,
            ICommentModerator commentModerator)
        {
            _blogConfig = blogConfig;
            _audit      = audit;

            _commentRepo      = commentRepo;
            _commentReplyRepo = commentReplyRepo;
            _postRepo         = postRepo;
            _commentModerator = commentModerator;
        }