private Candidate CreateCandidate() { var candidate = new Candidate() { Id = CandidateId, PreferredTeachingSubjectId = PreferredTeachingSubjectId, CountryId = CountryId, Email = Email, FirstName = FirstName, LastName = LastName, DateOfBirth = DateOfBirth, AddressLine1 = AddressLine1, AddressLine2 = AddressLine2, AddressCity = AddressCity, AddressPostcode = AddressPostcode.AsFormattedPostcode(), Telephone = Telephone, TeacherId = TeacherId, TypeId = TypeId, InitialTeacherTrainingYearId = InitialTeacherTrainingYearId, PreferredEducationPhaseId = PreferredEducationPhaseId, HasGcseEnglishId = HasGcseMathsAndEnglishId, HasGcseMathsId = HasGcseMathsAndEnglishId, HasGcseScienceId = HasGcseScienceId, PlanningToRetakeGcseEnglishId = PlanningToRetakeGcseMathsAndEnglishId, PlanningToRetakeGcseMathsId = PlanningToRetakeGcseMathsAndEnglishId, PlanningToRetakeGcseScienceId = PlanningToRetakeGcseScienceId, EligibilityRulesPassed = "false", AdviserRequirementId = null, AdviserEligibilityId = null, AssignmentStatusId = null, }; ConfigureChannel(candidate); ConfigureGcseStatus(candidate); AcceptPrivacyPolicy(candidate); SchedulePhoneCall(candidate); AddQualification(candidate); AddPastTeachingPosition(candidate); SetAdviserEligibility(candidate); DefaultPreferredEducationPhase(candidate); DefaultPreferredTeachingSubjectId(candidate); SubscriptionManager.SubscribeToTeacherTrainingAdviser(candidate, DateTimeProvider.UtcNow); return(candidate); }
private Candidate CreateCandidate() { var candidate = new Candidate() { Id = CandidateId, ConsiderationJourneyStageId = ConsiderationJourneyStageId, PreferredTeachingSubjectId = PreferredTeachingSubjectId, Email = Email, FirstName = FirstName, LastName = LastName, AddressPostcode = AddressPostcode.AsFormattedPostcode(), EligibilityRulesPassed = "false", }; ConfigureChannel(candidate); ConfigureSubscriptions(candidate); AddQualification(candidate); AcceptPrivacyPolicy(candidate); return(candidate); }
private Candidate CreateCandidate() { var candidate = new Candidate() { Id = CandidateId, ConsiderationJourneyStageId = ConsiderationJourneyStageId, PreferredTeachingSubjectId = PreferredTeachingSubjectId, Email = Email, FirstName = FirstName, LastName = LastName, AddressPostcode = AddressPostcode.AsFormattedPostcode(), Telephone = Telephone, }; ConfigureChannel(candidate); AddTeachingEventRegistration(candidate); AddQualification(candidate); AcceptPrivacyPolicy(candidate); ConfigureSubscriptions(candidate); return(candidate); }