public UpdateAuthorCommandHandlerTests()
        {
            _authorRepository = new Mock <IAuthorRepository>();
            IValidator <UpdateAuthorCommand> updateAuthorCommandValidator =
                new UpdateAuthorCommandValidator(_authorRepository.Object);

            _updateAuthorCommandHandler =
                new UpdateAuthorCommandHandler(updateAuthorCommandValidator, _authorRepository.Object);
        }
Exemple #2
0
 public UpdateAuthorCommandValidatorTests()
 {
     _authorRepositoryMock         = new Mock <IAuthorRepository>();
     _updateAuthorCommandValidator = new UpdateAuthorCommandValidator(_authorRepositoryMock.Object);
 }