public CreateAuthorCommandHandlerTests() { _authorRepository = new Mock <IAuthorRepository>(); var createAuthorCommandValidator = new CreateAuthorCommandValidator(_authorRepository.Object); _createAuthorCommandHandler = new CreateAuthorCommandHandler(createAuthorCommandValidator, _authorRepository.Object); }
public CreateAuthorCommandValidatorTests() { _authorRepositoryMock = new Mock <IAuthorRepository>(); _createAuthorCommandValidator = new CreateAuthorCommandValidator(_authorRepositoryMock.Object); }