public When_Validating_FasterPaymentSchemeRule_With_Null_Account()
 {
     _fasterPaymentSchemeRule = new FasterPaymentSchemeRule();
     makePaymentRequest       = new TestPaymentRequestBuilder()
                                .WithAmount(500m)
                                .WithCredtorAccountNumber("CredtorAccountNumber")
                                .WithDebtorAccountNumber("DebtorAccountNumber")
                                .WithPaymentDate(DateTime.Now)
                                .WithPaymentScheme(PaymentScheme.FasterPayments)
                                .Build();
 }
Beispiel #2
0
 public When_Valdating_FasterPaymentSchemeRule_With_Account_Balance_More_Than_To_Request_Amount()
 {
     _fasterPaymentSchemeRule = new FasterPaymentSchemeRule();
     makePaymentRequest       = new TestPaymentRequestBuilder()
                                .WithAmount(1000m)
                                .WithCredtorAccountNumber("CredtorAccountNumber")
                                .WithDebtorAccountNumber("DebtorAccountNumber")
                                .WithPaymentScheme(PaymentScheme.FasterPayments)
                                .WithPaymentDate(DateTime.Now)
                                .Build();
     account = new TestAccountBuilder()
               .WithAccountNumber("AccountNumber")
               .WithAllowedPaymentSchemes(AllowedPaymentSchemes.FasterPayments)
               .WithBalance(1500m)
               .WithStatus(AccountStatus.Live)
               .Build();
 }