Example #1
0
 public static void firstName(String first)
 {
     if (string.IsNullOrWhiteSpace(first))
     {
         StandardMessages.userInputError("first");
         StandardMessages.endApplication();
     }
 }
        static void Main(string[] args)
        {
            StandardMessages.greetingMessage();
            Person user = new Person();

            GatherDetails.firstName(user);
            UserInputChecker.firstName(user.firstName);
            GatherDetails.lastName(user);
            UserInputChecker.lastName(user.lastName);
            GenerateAccount.create(user.firstName, user.lastName);
            StandardMessages.endApplication();
        }