public void GetFilteredWords_ShouldGetAllFilteredWords() { _wordRepository.GetFilteredWords("nam").Returns(new List <string> { "namas", "namas2" }); _wordsService.GetFilteredWords("nam").ShouldBe(new List <string> { "namas", "namas2" }); }
public List <string> GetFilteredWords(string fragment) { return(WordsRepository.GetFilteredWords(fragment)); }