Esempio n. 1
0
        //Create new candidate
        private void CreateNewCandidate()
        {
            Console.Clear();
            Candidate newPerson = new Candidate();

            //Name
            Console.WriteLine("Enter the Candidates name:");
            newPerson.Name = Console.ReadLine();

            //Center of interest
            Console.WriteLine("Which center are they interested in? (Enter Center Number 1-5):\n" +
                              "1. Brookhaven\n" +
                              "2. Columbus\n" +
                              "3. Kennesaw\n" +
                              "4. Marietta\n" +
                              "5. Savannah");

            string centerAsString = Console.ReadLine();
            int    centerAsInt    = int.Parse(centerAsString);

            newPerson.CenterOfInterest = (Center)centerAsInt;

            //Experience

            //Pay Expectations
            Console.WriteLine("What's their requested hourly pay rate? (15, 16.50, etc):");
            string payAsString = Console.ReadLine();

            newPerson.PayExpectations = double.Parse(payAsString);                          //Casting- Taking an object and casting into another type

            // Interview status
            Console.WriteLine("What's their status? (1-5):\n" +
                              "1. Emailed\n" +
                              "2. Phone Screened\n" +
                              "3. Video Interviewed\n" +
                              "4. Onsite Interview\n" +
                              "5. Feedback Recieved");

            string interviewAsString = Console.ReadLine();
            int    interviewAsInt    = int.Parse(interviewAsString);

            newPerson.InterviewStatus = (Status)interviewAsInt;

            // Offer status
            Console.WriteLine("What is their offer status? (1-3):\n" +
                              "1. Offer Extended\n" +
                              "2. Offer Accepted\n" +
                              "3. Offer Declined");

            string offerAsString = Console.ReadLine();
            int    offerAsInt    = int.Parse(offerAsString);

            newPerson.OfferStatus = (Offer)offerAsInt;

            _candidateRepo.AddCandidateToList(newPerson);
        }