public UpdateAuthorCommandHandlerTests() { _authorRepository = new Mock <IAuthorRepository>(); IValidator <UpdateAuthorCommand> updateAuthorCommandValidator = new UpdateAuthorCommandValidator(_authorRepository.Object); _updateAuthorCommandHandler = new UpdateAuthorCommandHandler(updateAuthorCommandValidator, _authorRepository.Object); }
public UpdateAuthorCommandValidatorTests() { _authorRepositoryMock = new Mock <IAuthorRepository>(); _updateAuthorCommandValidator = new UpdateAuthorCommandValidator(_authorRepositoryMock.Object); }