コード例 #1
0
        public CreatePublisherCommandHandlerTests()
        {
            _publisherRepository = new Mock<IPublisherRepository>();
            IValidator<CreatePublisherCommand> createPublisherCommandValidator =
                new CreatePublisherCommandValidator(_publisherRepository.Object);

            _createPublisherCommandHandler =
                new CreatePublisherCommandHandler(createPublisherCommandValidator, _publisherRepository.Object);
        }
コード例 #2
0
 public CreatePublisherCommandValidatorTests()
 {
     _publisherRepositoryMock         = new Mock <IPublisherRepository>();
     _createPublisherCommandValidator = new CreatePublisherCommandValidator(_publisherRepositoryMock.Object);
 }