Exemple #1
0
        public IList <Candidate> GetCandidates(JobHunt jobHunt)
        {
            LinkedInSearch linkedInSearch     = MapJobHuntToLinkedInSearch(jobHunt);
            var            linkedInCandidates = AdapteeLinkedInManager.SearchInLinkedInCloud(linkedInSearch);

            return(MapLinkedInCandidatesToCandidates(linkedInCandidates));
        }
Exemple #2
0
        private void SetCandidates(JobHunt jobHunt)
        {
            candidates.Clear();

            foreach (var dataSource in hrDataSources)
            {
                candidates.AddRange(dataSource.GetCandidates(jobHunt));
            }
        }
Exemple #3
0
        private LinkedInSearch MapJobHuntToLinkedInSearch(JobHunt jobHunt)
        {
            LinkedInSearch linkedInSearch = new LinkedInSearch(
                jobHunt.GetTechnologiesToFind().ToArray(),
                new List <string> {
                "Argentina", "New Zealand"
            });

            return(linkedInSearch);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
 public IList <Candidate> GetCandidates(JobHunt jobHunt)
 {
     //Searching candidates in XML Files!
     return(dataSource.Where(c => jobHunt.GetTechnologiesToFind().Contains(c.Technology))
            .ToList());
 }
Exemple #6
0
 //Searching candidates in XML Files!
 public IList <Candidate> GetCandidates(JobHunt jobHunt)
 {
     return(dataSource.Where(c => jobHunt.GetTechnologiesToFind().Contains(c.Technology))
            .ToList());
 }
Exemple #7
0
 public IList <Candidate> GetCandidates(JobHunt jobHunt)
 {
     return(apiAdaptee.SearchCandidates(jobHunt));
 }
Exemple #8
0
 public IList <Candidate> GetBestCandidates(JobHunt jobHunt)
 {
     SetCandidates(jobHunt);
     return(FilterCandidatesWithSecretAlgorithm());
 }