public CreatePublisherCommandHandlerTests() { _publisherRepository = new Mock<IPublisherRepository>(); IValidator<CreatePublisherCommand> createPublisherCommandValidator = new CreatePublisherCommandValidator(_publisherRepository.Object); _createPublisherCommandHandler = new CreatePublisherCommandHandler(createPublisherCommandValidator, _publisherRepository.Object); }
public CreatePublisherCommandValidatorTests() { _publisherRepositoryMock = new Mock <IPublisherRepository>(); _createPublisherCommandValidator = new CreatePublisherCommandValidator(_publisherRepositoryMock.Object); }