static string makeNumberIBAN(string number)
 {
     AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number);
     if(validator.isNRBAccountNumber())
     {
         number = "PL" + number;
     }
     return number;
 }
示例#2
0
 static string makeNumberIBAN(string number)
 {
     AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number);
     if (validator.isNRBAccountNumber())
     {
         number = "PL" + number;
     }
     return(number);
 }
示例#3
0
        protected virtual void designateValuesIfNumberIsCorrect()
        {
            var isNumberCorrect = accountNumberValidator.isNRBAccountNumber() && accountNumberValidator.isAccountNumberCorrect();

            if (isNumberCorrect)
            {
                designateInstitutionID();
                designateBranchID();
                designateControlDigit();
                designateClientAccountNumber();
                designateControlAmount();
                designateBankRoutingNumber();
            }
            else
            {
                throw new System.Exception("Account number is incorrect.");
            }
        }