public WhenValidatingBacsPaymentWithNullAccount() { bacsPaymentRule = new BacsPaymentRule(); makePaymentRequest = new PaymentRequestBuilder() .WithAmount(500m) .WithCredtorAccountNumber("CredtorAccountNumber") .WithDebtorAccountNumber("DebtorAccountNumber") .WithPaymentDate(DateTime.Now) .WithPaymentScheme(PaymentScheme.Bacs) .Build(); }
public WhenValidatingBacsPaymentForAccountWithNonBacsPaymentScheme() { bacsPaymentRule = new BacsPaymentRule(); makePaymentRequest = new PaymentRequestBuilder() .WithAmount(500m) .WithCredtorAccountNumber("CredtorAccountNumber") .WithDebtorAccountNumber("DebtorAccountNumber") .WithPaymentScheme(PaymentScheme.Bacs) .WithPaymentDate(DateTime.Now) .Build(); account = new AccountBuilder() .WithAccountNumber("AccountNumber") .WithAllowedPaymentSchemes(AllowedPaymentSchemes.Chaps) .WithBalance(1000m) .WithStatus(AccountStatus.Live) .Build(); }