示例#1
0
        public CommentService(IUnitOfWork unitOfWork, ICommentValidation commentValidation,
                              CommentServiceSettings serviceSettings)
            : base(unitOfWork)
        {
            Guard.NotNull(commentValidation, "commentValidation");
            Guard.NotNull(serviceSettings, "serviceSettings");

            this._commentValidation = commentValidation;
            this._serviceSettings = serviceSettings;
        }
示例#2
0
 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);
 }
示例#4
0
 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;
 }
示例#6
0
 public CommentService(ICommentRepository commentRepository, ICommentValidation validation)
 {
     this.commentRepository = commentRepository;
     this.commentValidation = validation;
 }
 public CommentAppService()
 {
     this.commentValidation = ValidationFactory.GetCommentValidation();
     this.commentService = ServiceFactory.GetCommentService(RepositoryFactory.GetCommentRepository(), this.commentValidation);
 }