Beispiel #1
0
        static void Main(string[] args)
        {
            Person user = PersonDataCapture.Capture();

            bool isUserValid = PersonValidator.Validate(user);

            if (isUserValid == false)
            {
                return;
            }

            AccountGenerator.CreateAccount(user);
        }
Beispiel #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();
        }
Beispiel #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();
        }