Пример #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 string agencyNumberMsgError(int length)
 {
     return(CommonBankAccountValidator.agencyNumberMsgError());
 }
 public bool agencyNumberIsValid(string agencyNumber)
 {
     return(CommonBankAccountValidator.agencyNumberIsValid(agencyNumber));
 }
 public string agencyCheckNumberMsgError()
 {
     return(CommonBankAccountValidator.agencyCheckNumberMsgError());
 }
 public string accountNumberMsgError(int length)
 {
     return(CommonBankAccountValidator.accountNumberMsgError(this.accountNumberLength()));
 }
 public bool accountNumberIsValid(string accountNumber)
 {
     return(accountNumber.Length == this.accountNumberLength() &&
            CommonBankAccountValidator.accountNumberIsValid(accountNumber));
 }
 public bool accountCheckNumberIsValid(string accountCheckNumber)
 {
     return(CommonBankAccountValidator.accountCheckNumberIsValid(accountCheckNumber));
 }