Пример #1
0
        static void Main(string[] args)
        {
            StandardMessages.WelcomeMessage();

            Person user = PersonDataCapture.Capture();

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

            AccountGenerator.CreateAccount(user);

            StandardMessages.EndApplication();
        }
Пример #2
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();
        }