public WhenValidatingFasterPaymentWithNullAccount()
 {
     fasterPaymentRule  = new FasterPaymentRule();
     makePaymentRequest = new PaymentRequestBuilder()
                          .WithAmount(500m)
                          .WithCredtorAccountNumber("CredtorAccountNumber")
                          .WithDebtorAccountNumber("DebtorAccountNumber")
                          .WithPaymentDate(DateTime.Now)
                          .WithPaymentScheme(PaymentScheme.Bacs)
                          .Build();
 }
Ejemplo n.º 2
0
 public WhenValidatingFasterPaymentForAccountWithNonFasterPaymentScheme()
 {
     fasterPaymentRule  = new FasterPaymentRule();
     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();
 }