コード例 #1
0
        public void CheckPaymentValid_False_IfAccountNull()
        {
            var bacsPaymentValidator = new BacsPaymentValidator();

            var     request = new MakePaymentRequest();
            Account account = null;

            var validationResult = bacsPaymentValidator.CheckPaymentValid(request, account);

            Assert.That(validationResult, Is.False);
        }
コード例 #2
0
        public void CheckPaymentValid_True_IfAllowedSchemesBacs()
        {
            var bacsPaymentValidator = new BacsPaymentValidator();

            var     request = new MakePaymentRequest();
            Account account = new Account {
                AllowedPaymentSchemes = AllowedPaymentSchemes.Bacs
            };

            var validationResult = bacsPaymentValidator.CheckPaymentValid(request, account);

            Assert.That(validationResult, Is.True);
        }