public When_Validating_ChapsPaymentSchemeRule_With_Null_Account() { _chapsPaymentSchemeRule = new ChapsPaymentSchemeRule(); makePaymentRequest = new TestPaymentRequestBuilder() .WithAmount(500m) .WithCredtorAccountNumber("CredtorAccountNumber") .WithDebtorAccountNumber("DebtorAccountNumber") .WithPaymentDate(DateTime.Now) .WithPaymentScheme(PaymentScheme.Chaps) .Build(); }
public When_Validating_ChapsPaymentSchemeRule_With_Request_AccountStatus_Set_To_Disabled() { _chapsPaymentSchemeRule = new ChapsPaymentSchemeRule(); makePaymentRequest = new TestPaymentRequestBuilder() .WithAmount(1000m) .WithCredtorAccountNumber("CredtorAccountNumber") .WithDebtorAccountNumber("DebtorAccountNumber") .WithPaymentScheme(PaymentScheme.Chaps) .WithPaymentDate(DateTime.Now) .Build(); account = new TestAccountBuilder() .WithAccountNumber("AccountNumber") .WithAllowedPaymentSchemes(AllowedPaymentSchemes.Chaps) .WithBalance(1500m) .WithStatus(AccountStatus.Disabled) .Build(); }
public When_Validating_ChapsPaymentSchemeRule_For_Account_With_Non_ChapsPaymentScheme() { _chapsPaymentSchemeRule = new ChapsPaymentSchemeRule(); makePaymentRequest = new TestPaymentRequestBuilder() .WithAmount(500m) .WithCredtorAccountNumber("CredtorAccountNumber") .WithDebtorAccountNumber("DebtorAccountNumber") .WithPaymentScheme(PaymentScheme.Chaps) .WithPaymentDate(DateTime.Now) .Build(); account = new TestAccountBuilder() .WithAccountNumber("AccountNumber") .WithAllowedPaymentSchemes(AllowedPaymentSchemes.FasterPayments) .WithBalance(1000m) .WithStatus(AccountStatus.Live) .Build(); }