public IList <Candidate> GetCandidates(JobHunt jobHunt) { LinkedInSearch linkedInSearch = MapJobHuntToLinkedInSearch(jobHunt); var linkedInCandidates = AdapteeLinkedInManager.SearchInLinkedInCloud(linkedInSearch); return(MapLinkedInCandidatesToCandidates(linkedInCandidates)); }
private void SetCandidates(JobHunt jobHunt) { candidates.Clear(); foreach (var dataSource in hrDataSources) { candidates.AddRange(dataSource.GetCandidates(jobHunt)); } }
private LinkedInSearch MapJobHuntToLinkedInSearch(JobHunt jobHunt) { LinkedInSearch linkedInSearch = new LinkedInSearch( jobHunt.GetTechnologiesToFind().ToArray(), new List <string> { "Argentina", "New Zealand" }); return(linkedInSearch); }
static void Main(string[] args) { Console.WriteLine("############# Adapter - Hr Analyser #############"); var jobHunt = new JobHunt(new List <string> { "dotnet", "java", "python" }); var analyser = new HrAnalyserService(); var bestCandidates = analyser.GetBestCandidates(jobHunt); Print(bestCandidates); }
public IList <Candidate> GetCandidates(JobHunt jobHunt) { //Searching candidates in XML Files! return(dataSource.Where(c => jobHunt.GetTechnologiesToFind().Contains(c.Technology)) .ToList()); }
//Searching candidates in XML Files! public IList <Candidate> GetCandidates(JobHunt jobHunt) { return(dataSource.Where(c => jobHunt.GetTechnologiesToFind().Contains(c.Technology)) .ToList()); }
public IList <Candidate> GetCandidates(JobHunt jobHunt) { return(apiAdaptee.SearchCandidates(jobHunt)); }
public IList <Candidate> GetBestCandidates(JobHunt jobHunt) { SetCandidates(jobHunt); return(FilterCandidatesWithSecretAlgorithm()); }