public CreateAuthorCommandHandlerTests()
        {
            _authorRepository = new Mock <IAuthorRepository>();
            var createAuthorCommandValidator =
                new CreateAuthorCommandValidator(_authorRepository.Object);

            _createAuthorCommandHandler =
                new CreateAuthorCommandHandler(createAuthorCommandValidator, _authorRepository.Object);
        }
Beispiel #2
0
 public CreateAuthorCommandValidatorTests()
 {
     _authorRepositoryMock         = new Mock <IAuthorRepository>();
     _createAuthorCommandValidator = new CreateAuthorCommandValidator(_authorRepositoryMock.Object);
 }