Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Person user = PersonDataCapture.Capture();

            bool isUserValid = PersonValidator.Validate(user);

            if (isUserValid == false)
            {
                return;
            }

            AccountGenerator.CreateAccount(user);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            StandardMessages.WelcomeMessage();

            Person user = PersonDataCapture.Capture();

            if (!PersonValidator.Validate(user))
            {
                StandardMessages.EndApplication();
                return;
            }

            AccountGenerator.CreateAccount(user);

            StandardMessages.EndApplication();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            StandardMessages.WelcomeMessage();

            // We should not have this tight couple thing - use DI / Interfaces
            Person user = PersonDataCapture.Capture();

            bool isUserValid = PersonValidator.Validate(user);

            if (isUserValid == false)
            {
                StandardMessages.EndApplication();
                return;
            }

            AccountGenerator.CreateAccount(user);

            //Console.ReadLine();
            StandardMessages.EndApplication();
        }