public CommentService(IUnitOfWork unitOfWork, ICommentValidation commentValidation, CommentServiceSettings serviceSettings) : base(unitOfWork) { Guard.NotNull(commentValidation, "commentValidation"); Guard.NotNull(serviceSettings, "serviceSettings"); this._commentValidation = commentValidation; this._serviceSettings = serviceSettings; }
public static ICommentService GetCommentService(ICommentRepository repository, ICommentValidation validation) { return(new CommentService(repository, validation)); }
public CommentAppService() { this.commentValidation = ValidationFactory.GetCommentValidation(); this.commentService = ServiceFactory.GetCommentService(RepositoryFactory.GetCommentRepository(), this.commentValidation); }
public static ICommentService GetCommentService(ICommentRepository repository, ICommentValidation validation) { return new CommentService(repository, validation); }
public CommentService(ICommentRepository commentRepository, ICommentValidation validation) { this.commentRepository = commentRepository; this.commentValidation = validation; }