示例#1
0
        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);
        }
示例#2
0
 public FasterPaymentsSchemeValidatorTestBase()
 {
     _account                       = new Account();
     _makePaymentRequest            = new MakePaymentRequest();
     _fasterPaymentsSchemeValidator = new FasterPaymentsSchemeValidator();
 }
示例#3
0
 public FasterPaymentsSchemeValidatorTests()
 {
     _chapsSchemeValidator      = new FasterPaymentsSchemeValidator();
     _account.Balance           = 10;
     _makePaymentRequest.Amount = 5;
 }