public FindWordsResponseMessage FindWords(FindWordsRequestMessage message) { return(new FindWordsResponseMessage() { SearchPattern = message.Pattern.ToLower(), Letters = message.Letters?.ToLower(), Words = wordFinder.FindWords(message.Pattern, message.Letters?.ToLower()) }); }
void ProcessCandidates() { var playerLetters = GetPlayerLettersString(); foreach (var candidate in aiGridModel.Candidates) { currentCandidate = candidate; currentMainWords = wordFinder.FindWords(candidate.SearchPattern, playerLetters); ProcessMainWords(); } }
void GivenMainWords(params string[] mainWords) { wordFinder.FindWords(Arg.Any <string>()).Returns(mainWords); }