public async Task ThenTheCommandIsValidated() { //Act await _handler.Handle(new RefreshPaymentDataCommand()); //Assert _validator.Verify(x => x.Validate(It.IsAny <RefreshPaymentDataCommand>()), Times.Once); }
public Task <Unit> Handle() { return(_handler.Handle(new RefreshPaymentDataCommand { AccountId = _accountId, PeriodEnd = _periodEnd })); }