Exemplo n.º 1
0
        public static void Operation()
        {
            var newUser = CreateUserMenu.Handle();

            DisplayUserMenu.Handle(newUser);
            Printer.ReadLine();
        }
Exemplo n.º 2
0
        public static User Handle()
        {
            while (true)
            {
                var userInput = CreateUserMenu.Display();

                if (CreateUserValidator.Validate(userInput))
                {
                    Console.WriteLine("Username Accepted");
                    return(new User {
                        Username = userInput
                    });
                }
            }
        }