public WordCountResult Count(IList <string> WordsToCount) { var result = new WordCountResult(); result.CountWords = WordsToCount.Count; return(result); }
public void ShowResult(WordCountResult wordCountResult) { Console.WriteLine(string.Format("Es wurden {0} Wörter gezählt", wordCountResult.CountWords)); }