CheckBankAccount() 공개 메소드

public CheckBankAccount ( string sortCode, string accountNumber ) : bool
sortCode string
accountNumber string
리턴 bool
예제 #1
0
        public void ItCanRevalidateDetailsOnImmediateRepeat()
        {
            var checker = new ModulusChecker();

            Assert.IsTrue(checker.CheckBankAccount(Sortcode, AccNumber));
            Assert.IsTrue(checker.CheckBankAccount(Sortcode, AccNumber));
        }
예제 #2
0
        public void ItCanRevalidateDetailsOnSeparatedRepeat(string sc, string an)
        {
            var checker = new ModulusChecker();

            Assert.IsTrue(checker.CheckBankAccount(Sortcode, AccNumber), string.Format("first check should have passed for {0} and {1}", Sortcode, AccNumber));
            Assert.IsTrue(checker.CheckBankAccount(sc, an), string.Format("separating check should have passed for {0} and {1}", sc, an));
            Assert.IsTrue(checker.CheckBankAccount(Sortcode, AccNumber), string.Format("second check should have passed for {0} and {1}", Sortcode, AccNumber));
        }
예제 #3
0
 public void SeparatingCheckPassesInIsolation(string sc, string an)
 {
     var checker = new ModulusChecker();
     Assert.IsTrue(checker.CheckBankAccount(Sortcode, AccNumber));
 }