public async Task ThenTheCommandIsValidated()
        {
            //Act
            await _handler.Handle(new RefreshPaymentDataCommand());

            //Assert
            _validator.Verify(x => x.Validate(It.IsAny <RefreshPaymentDataCommand>()), Times.Once);
        }
Пример #2
0
 public Task <Unit> Handle()
 {
     return(_handler.Handle(new RefreshPaymentDataCommand
     {
         AccountId = _accountId,
         PeriodEnd = _periodEnd
     }));
 }