示例#1
0
        public async Task ThenTheProcessDeclarationsRepositoryCallIsMade()
        {
            //Act
            await _eventHandler.Handle(new ProcessPaymentEvent());

            //Assert
            _dasLevyRepository.Verify(x => x.ProcessPaymentData(), Times.Once);
        }
示例#2
0
        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);
        }