Exemple #1
0
        public bool AskNewEmployeeDetails()
        {
            Employee Employee = new Employee
            {
                ID = Guid.NewGuid()
            };

            Console.Write("\n>>Enter the new employee details\nName : ");
            Employee.FullName = Console.ReadLine().Trim();
            Console.Write("PUID : ");
            Employee.PUID = Console.ReadLine().Trim();
            Console.WriteLine("JobTitle : ");
            Console.WriteLine("1->Senior Technical Lead\n2->Business Analyst\n" +
                              "3->Software Developer\n4->QA Tester");
            Console.Write("Enter the right job number : ");
            Employee.JobTitle = ValidatingKeys.AssigningJob();
            Employee.EmailID  = "";

            Console.Write(">>Assign him/her to the project : \nTeam Name & Project Name : ");
            var project = new List <CFGApplication>
            {
                new CFGApplication()
                {
                    Id = Guid.NewGuid(), TeamName = Console.ReadLine().Trim(), ProjectName = Console.ReadLine().Trim()
                }
            };

            Employee.CFGApplications = project;
            return(employeeValidator.ValidateToUpload(Employee));
        }