public HidePostCommandHandler( IPublisher bus, IPostReadOnlyRepository postReadOnlyRepository) { this.bus = bus ?? throw new ArgumentNullException(nameof(bus)); this.postReadOnlyRepository = postReadOnlyRepository ?? throw new ArgumentNullException(nameof(postReadOnlyRepository)); }
public PostDisabledEventHandler( IPostReadOnlyRepository postReadOnlyRepository, IPostWriteOnlyRepository postWriteOnlyRepository) { this.postReadOnlyRepository = postReadOnlyRepository ?? throw new ArgumentNullException(nameof(postReadOnlyRepository)); this.postWriteOnlyRepository = postWriteOnlyRepository ?? throw new ArgumentNullException(nameof(postWriteOnlyRepository)); }
public BlogUnitOfWork( IPostReadOnlyRepository postReadOnlyRepository, IPostCommandRepository postCommandRepository, ICommentReadOnlyRepository commentReadOnlyRepository, ICommentCommandRepository commentCommandRepository) { PostReadOnlyRepository = postReadOnlyRepository; PostCommandRepository = postCommandRepository; CommentReadOnlyRepository = commentReadOnlyRepository; CommentCommandRepository = commentCommandRepository; }
public CreateCommentCommandHandler( IPublisher bus, IPostReadOnlyRepository postReadOnlyRepository, IBlogReadOnlyRepository blogReadOnlyRepository) { this.bus = bus ?? throw new ArgumentNullException(nameof(bus)); this.postReadOnlyRepository = postReadOnlyRepository ?? throw new ArgumentNullException(nameof(postReadOnlyRepository)); this.blogReadOnlyRepository = blogReadOnlyRepository ?? throw new ArgumentNullException(nameof(blogReadOnlyRepository)); }
public PostCreatedEventHandler( IPostReadOnlyRepository postReadOnlyRepository, IPostWriteOnlyRepository postWriteOnlyRepository, IBlogReadOnlyRepository blogReadOnlyRepository, IBlogWriteOnlyRepository blogWriteOnlyRepository) { this.postReadOnlyRepository = postReadOnlyRepository ?? throw new ArgumentNullException(nameof(postReadOnlyRepository)); this.postWriteOnlyRepository = postWriteOnlyRepository ?? throw new ArgumentNullException(nameof(postWriteOnlyRepository)); this.blogReadOnlyRepository = blogReadOnlyRepository ?? throw new ArgumentNullException(nameof(blogReadOnlyRepository)); this.blogWriteOnlyRepository = blogWriteOnlyRepository ?? throw new ArgumentNullException(nameof(blogWriteOnlyRepository)); }
public PostGetByIdUseCase(IPostReadOnlyRepository postReadOnlyRepository) { this.postReadOnlyRepository = postReadOnlyRepository; }
public PostsController(IMediator mediator, IPostReadOnlyRepository postQueries) { this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); this.postQueries = postQueries ?? throw new ArgumentNullException(nameof(postQueries)); }