public void GetAllCandidatesIsNotNullOrEmpty() { ICandidateRepository repo = DALFactory.CreateCandidateRepository(); List <CandidateDTO> candidates = repo.GetAllCandidates().ToList(); Assert.AreNotEqual(candidates, null); Assert.AreNotEqual(candidates.Count, 0); }
public void GetDetailsCandidateIsWorking() { ICandidateRepository repo = DALFactory.CreateCandidateRepository(); int Id = repo.GetAllCandidates().Where(c => c.Name == "Sherlock Holmes").First().Id; CandidateDetailsDTO candidateDetails = repo.GetCandidateDetails(Id); Assert.AreEqual(candidateDetails.Name, "Sherlock Holmes"); Assert.AreEqual(candidateDetails.Skills.Contains("Deduction"), true); }