Esempio n. 1
0
        static void Main(string[] args)
        {
            string machineFormat   = "A227720-35988";
            bool   isMachineFormat = BankUtil.CorrectNumber(ref machineFormat);

            if (isMachineFormat)
            {
                Console.WriteLine($"{machineFormat} - {BankUtil.IsValidAccount(machineFormat)}");
            }
            else
            {
                Console.WriteLine("Account number incorrect!");
            }
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();
        }
Esempio n. 2
0
 public bool IsValid()
 {
     return(BankUtil.IsValidAccount(Account));
 }