예제 #1
0
        private void AddNewDeveloper()
        {
            Console.Clear();
            Developer newDeveloper = new Developer();

            Console.WriteLine("Enter the name of the new Developer:");
            newDeveloper.Name = Console.ReadLine();

            Console.WriteLine("Enter the ID Number of the new Developer:");
            newDeveloper.IDNumber = Console.ReadLine();

            Console.WriteLine("Does the Developer have access to Pluralsight? (y/n)");
            string accessToPluralsight = Console.ReadLine().ToLower();

            if (accessToPluralsight == "y")
            {
                newDeveloper.PluralsightAccess = true;
            }
            else
            {
                newDeveloper.PluralsightAccess = false;
            }

            _devTeamRepo.AddDeveloperToRepo(newDeveloper);
        }