public void CalculateBestSkillMatchShouldReturnNothing(params string[] inputStrings) { // Arrange var getBestMatch = new CalculateBestCandidate(); var mockCandidates = new List <Candidate> { new Candidate() { Id = "userid8723", Name = "John Wick", Skills = new[] { "java" } }, new Candidate() { Id = "userid8724", Name = "Dr Phil", Skills = new[] { "sql", "html", "photoshop" } }, new Candidate() { Id = "userid8725", Name = "Will Smith", Skills = new[] { "java", "sql", "internet explorer" } }, }; var expectedResult = new List <Candidate>(); // Act var result = getBestMatch.ReturnResult(inputStrings, mockCandidates); // Assert expectedResult.Should().BeEquivalentTo(result); }
public IEnumerable <Candidate> GetCandidates(string[] skills) { var bestMatch = new CalculateBestCandidate(); return(bestMatch.ReturnResult(skills, _context.Candidates.ToList())); }