private void PopulateWithCandidate(Candidate candidate)
        {
            var latestQualification = candidate.Qualifications.OrderByDescending(q => q.CreatedAt).FirstOrDefault();

            if (latestQualification != null)
            {
                QualificationId = latestQualification.Id;
                DegreeStatusId  = latestQualification.DegreeStatusId;
            }

            CandidateId = candidate.Id;
            PreferredTeachingSubjectId = candidate.PreferredTeachingSubjectId;

            ConsiderationJourneyStageId = candidate.ConsiderationJourneyStageId;

            Email           = candidate.Email;
            FirstName       = candidate.FirstName;
            LastName        = candidate.LastName;
            AddressPostcode = candidate.AddressPostcode;
            Telephone       = candidate.Telephone;

            AlreadySubscribedToMailingList            = candidate.HasMailingListSubscription == true;
            AlreadySubscribedToEvents                 = candidate.HasEventsSubscription == true;
            AlreadySubscribedToTeacherTrainingAdviser = candidate.HasTeacherTrainingAdviser();
        }
        private void PopulateWithCandidate(Candidate candidate)
        {
            CandidateId = candidate.Id;
            PreferredTeachingSubjectId = candidate.PreferredTeachingSubjectId;
            CountryId = candidate.CountryId;

            InitialTeacherTrainingYearId  = candidate.InitialTeacherTrainingYearId;
            PreferredEducationPhaseId     = candidate.PreferredEducationPhaseId;
            HasGcseScienceId              = candidate.HasGcseScienceId;
            PlanningToRetakeGcseScienceId = candidate.PlanningToRetakeGcseScienceId;

            if (candidate.HasGcseMathsAndEnglish())
            {
                HasGcseMathsAndEnglishId = (int)Candidate.GcseStatus.HasOrIsPlanningOnRetaking;
            }

            if (candidate.IsPlanningToRetakeGcseMathsAndEnglish())
            {
                PlanningToRetakeGcseMathsAndEnglishId = (int)Candidate.GcseStatus.HasOrIsPlanningOnRetaking;
            }

            Email           = candidate.Email;
            FirstName       = candidate.FirstName;
            LastName        = candidate.LastName;
            DateOfBirth     = candidate.DateOfBirth;
            TeacherId       = candidate.TeacherId;
            Telephone       = candidate.Telephone;
            AddressLine1    = candidate.AddressLine1;
            AddressLine2    = candidate.AddressLine2;
            AddressCity     = candidate.AddressCity;
            AddressPostcode = candidate.AddressPostcode;
            TypeId          = candidate.TypeId;

            AlreadySubscribedToTeacherTrainingAdviser = candidate.HasTeacherTrainingAdviser();

            var latestQualification = candidate.Qualifications.OrderByDescending(q => q.CreatedAt).FirstOrDefault();

            if (latestQualification != null)
            {
                QualificationId = latestQualification.Id;
                DegreeSubject   = latestQualification.DegreeSubject;
                UkDegreeGradeId = latestQualification.UkDegreeGradeId;
                DegreeStatusId  = latestQualification.DegreeStatusId;
                DegreeTypeId    = latestQualification.TypeId;
            }

            var latestPastTeachingPosition = candidate.PastTeachingPositions.OrderByDescending(q => q.CreatedAt).FirstOrDefault();

            if (latestPastTeachingPosition != null)
            {
                PastTeachingPositionId = latestPastTeachingPosition.Id;
                SubjectTaughtId        = latestPastTeachingPosition.SubjectTaughtId;
            }
        }