Пример #1
0
        private void RegisterDeveloper()
        {
            Console.Clear();
            Developer newContent = new Developer();

            Console.WriteLine("Enter your Unique ID:");
            string idAsString = Console.ReadLine();
            newContent.IdNumber = double.Parse(idAsString);

            Console.WriteLine("Enter your First Name:");
            newContent.FirstName = Console.ReadLine();

            Console.WriteLine("Enter your Last Name:");
            newContent.LastName = Console.ReadLine();

            Console.WriteLine("Do you have Pluralsight Access? (y/n):");
            string pluralSightAccessString = Console.ReadLine().ToLower();
            if (pluralSightAccessString == "y")
            {
                newContent.PluralSightAccess = true;
            }
            else
            {
                newContent.PluralSightAccess = false;
            }

            Console.WriteLine("Enter the Team Number have you been assigned to:\n" +
                                "1. Front End\n" +
                                "2. Back End\n" +
                                "3. Full Stack\n" +
                                "4. Design");
            string teamNameAsString = Console.ReadLine();
            int teamNameAsInt = int.Parse(teamNameAsString);
            newContent.NameOfTeam = (TeamName)teamNameAsInt;

            _contentRepo.AddDeveloperToList(newContent);
        }