public void ChapsPaymentValidator_AllowedPaymentSchemes_ReturnsValid() { var bacs = new ChapsPaymentValidator(); var account = new Account { AllowedPaymentSchemes = AllowedPaymentSchemes.Chaps, Status = AccountStatus.Live }; Assert.True(bacs.IsValid(account, 0)); }
public void ChapsPaymentValidator_InValidAccount_ReturnsInValid() { var chaps = new ChapsPaymentValidator(); var account = new Account { AllowedPaymentSchemes = AllowedPaymentSchemes.Bacs, Status = AccountStatus.InboundPaymentsOnly }; Assert.False(chaps.IsValid(account, 0)); }