Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            StandardMessage.WelcomeMessage();

            Person user = PersonDataCapture.Capture();

            bool isUserValid = PersonValidator.Validate(user);

            if (isUserValid == false)
            {
                StandardMessage.EndMessage();
                return;
            }
            AccountGenerator.CreateUserAccount(user);
            StandardMessage.EndMessage();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            // This Main method of the Program class just controls the flow of the application.

            StandardMessages.WelcomeMessage();

            IPersonModel user = PersonDataCapture.Capture();

            bool isUserValid = PersonValidator.Validate(user);

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

            AccountGenerator.CreateAccount(user);

            StandardMessages.EndApplication();
        }