private void Test(TestResume testResume, string fileName) { // Upload the file. var fileReferenceId = Upload(testResume, fileName); // Parse the resume. var parsedResumeId = Parse(fileReferenceId); // Join. Get(GetJoinUrl()); SubmitJoin(fileReferenceId, parsedResumeId); var instanceId = GetInstanceId(); var parsedResume = testResume.GetParsedResume(); var member = GetMember(parsedResume); var candidate = GetCandidate(); AssertPersonalDetails(instanceId, member, candidate, string.Empty, string.Empty, false); }
protected void CreateMember(TestResume testResume, out Member member, out Candidate candidate, out Resume resume) { // Member. member = CreateMember(); // Candidate. candidate = _candidatesQuery.GetCandidate(member.Id); candidate.DesiredJobTitle = DesiredJobTitle; candidate.DesiredJobTypes = JobTypes.FullTime | JobTypes.JobShare; candidate.DesiredSalary = new Salary { LowerBound = SalaryLowerBound, Rate = SalaryRate.Year, Currency = Currency.AUD }; candidate.HighestEducationLevel = EducationLevel.Postgraduate; var industries = _industriesQuery.GetIndustries(); candidate.Industries = new List <Industry> { industries[1], industries[2] }; candidate.RecentProfession = Profession.Science; candidate.RecentSeniority = Seniority.MidSenior; candidate.RelocationPreference = RelocationPreference.Yes; var country = _locationQuery.GetCountry(Country); candidate.RelocationLocations = new List <LocationReference> { _locationQuery.ResolveLocation(country, RelocationLocation) }; candidate.Status = CandidateStatus.AvailableNow; candidate.VisaStatus = VisaStatus.RestrictedWorkVisa; _candidatesCommand.UpdateCandidate(candidate); // Resume. resume = testResume.GetParsedResume().Resume; _candidateResumesCommand.CreateResume(candidate, resume); }