static string makeNumberIBAN(string number) { AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number); if(validator.isNRBAccountNumber()) { number = "PL" + number; } return number; }
static string makeNumberIBAN(string number) { AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number); if (validator.isNRBAccountNumber()) { number = "PL" + number; } return(number); }
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."); } }