public CreateCommentCommandHandler( IBlogConfig blogConfig, IRepository <PostEntity> postRepo, ICommentModerator moderator, IRepository <CommentEntity> commentRepo) { _blogConfig = blogConfig; _postRepo = postRepo; _moderator = moderator; _commentRepo = commentRepo; }
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; }