/// <summary> /// Returns all words from the thesaurus data store /// </summary> /// <returns> /// An IEnumerable<String> containing all the words in the thesaurus data store</returns> public IEnumerable <string> GetWords() { IEnumerable <ThesaurusWord> words = _thesaurusWordCache.GetAll(); return(words?.Select(x => x.GetKey()).ToList() ?? Enumerable.Empty <string>()); }
/// <summary> /// Gets all stored thesaurusWord objects from data store /// </summary> /// <returns>thesaurusWord objects</returns> public IEnumerable <ThesaurusWord> GetAll() { return(_wordStore.GetAll()); }