public async Task ThenTheProcessDeclarationsRepositoryCallIsMade() { //Act await _eventHandler.Handle(new ProcessPaymentEvent()); //Assert _dasLevyRepository.Verify(x => x.ProcessPaymentData(), Times.Once); }
public async Task ThenTheProcessDeclarationsRepositoryCallIsMade() { //Arrange const int accountId = 10; //Act await _eventHandler.Handle(new ProcessPaymentEvent { AccountId = accountId }); //Assert TODO change this to call event to publish message //_dasLevyRepository.Verify(x => x.ProcessPaymentData(accountId), Times.Once); }