Exemplo n.º 1
0
 /**
  * Testing  getCandidateList when Hiring manager, Candidate name and keywords are provided
  */
 public function testGetCandidateListForHiringManagerCandidateAndKeywords()
 {
     $searchParam = new CandidateSearchParameters();
     $searchParam->setHiringManagerId(1);
     $searchParam->setCandidateName('Yasitha Pandi');
     $searchParam->setKeywords("java,oracle");
     $candidateVacancyList = $this->candidateDao->searchCandidates($this->candidateDao->buildSearchQuery($searchParam));
     $this->assertTrue($candidateVacancyList[0] instanceof CandidateSearchParameters);
 }
 /**
  *
  * @param CandidateSearchParameters $searchParam
  * @return CandidateSearchParameters
  */
 public function getSearchParamsBindwithFormData(CandidateSearchParameters $searchParam)
 {
     $searchParam->setJobTitleCode($this->getValue('jobTitle'));
     $searchParam->setVacancyId($this->getValue('jobVacancy'));
     $searchParam->setHiringManagerId($this->getValue('hiringManager'));
     $searchParam->setStatus($this->getValue('status'));
     $searchParam->setCandidateId($this->getValue('selectedCandidate'));
     $searchParam->setModeOfApplication($this->getValue('modeOfApplication'));
     $dateApplication = $this->getValue('dateApplication');
     $searchParam->setFromDate($dateApplication['from']);
     $searchParam->setToDate($dateApplication['to']);
     $searchParam->setKeywords($this->getValue('keywords'));
     $searchParam->setCandidateName($this->getValue('candidateName'));
     return $searchParam;
 }