示例#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();
        }
示例#2
0
        static void Main(string[] args)
        {
            // Initial new list of people
            List <Person> people = new List <Person>();

            // Main method controls the flow of the program using the for loop
            for (int i = 0; i < 1; i++)
            {
                people.Add(PersonDataCapture.Capture());
            }

            // Iterate over the result printing the standard message
            foreach (Person person in people)
            {
                StandardMessages.OutputMessage(person.FirstName, person.LastName);
            }

            StandardMessages.EndApplication();
        }
示例#3
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();
        }