public async Task ThenShouldReturnACommitmentIfTransferSenderMatches() { var response = await _handler.Handle(_exampleValidRequest); response.Data.Id.Should().Be(_fakeCommitment.Id); response.Data.Reference.Should().Be(_fakeCommitment.Reference); response.Data.Apprenticeships.Should().HaveSameCount(_fakeCommitment.Apprenticeships); response.Data.Messages.Should().HaveSameCount(_fakeCommitment.Messages); }
public async Task ThenTheCommitmentRepositoryIsCalled() { await _handler.Handle(_exampleValidRequest); _mockCommitmentRespository.Verify(x => x.GetCommitmentById(It.IsAny <long>()), Times.Once); }