Exemplo n.º 1
0
        public void CommonBankAccountValidatorTest()
        {
            var nAgencia  = "3476";
            var dvAgencia = "2";

            var nConta  = "13073";
            var dvConta = "7";
            CommonBankAccountValidator c = new CommonBankAccountValidator();
            var contaValida   = CommonBankAccountValidator.accountNumberIsValid(nConta);
            var dvContaValida = CommonBankAccountValidator.accountCheckNumberIsValid(dvConta);

            Assert.AreEqual(true, dvContaValida);
        }
 public bool accountNumberIsValid(string accountNumber)
 {
     return(accountNumber.Length == this.accountNumberLength() &&
            CommonBankAccountValidator.accountNumberIsValid(accountNumber));
 }