public void ReturnFalseWhenAccountValidSchemeButAmountsInvalid() { // Access database to retrieve account, code removed for brevity var account = new Account { AllowedPaymentSchemes = AllowedPaymentSchemes.FasterPayments, Location = AccountLocation.Primary }; var validator = new FasterPaymentsSchemeValidator(account, _makePaymentRequest); var result = validator.Validate(); Assert.AreEqual(false, result.Success); }
public FasterPaymentsSchemeValidatorTestBase() { _account = new Account(); _makePaymentRequest = new MakePaymentRequest(); _fasterPaymentsSchemeValidator = new FasterPaymentsSchemeValidator(); }
public FasterPaymentsSchemeValidatorTests() { _chapsSchemeValidator = new FasterPaymentsSchemeValidator(); _account.Balance = 10; _makePaymentRequest.Amount = 5; }