public NameWithFrequency[] GetOrderedNamesWithFrequency(NamesWithFrequencyTestCase testCase)
        {
            var extractedContent = new ExtractedContent();

            foreach (var name in testCase.Names)
            {
                extractedContent.Add(new ContentItem
                {
                    FirstName = name.FirstName,
                    LastName  = name.LastName
                });
            }

            return(extractedContent.GetOrderedNamesWithFrequency().ToArray());
        }
Exemplo n.º 2
0
        public IList <string> GetFrequencyWithAlphabeticLines()
        {
            var orderedByFrequencyAndAlphabetic = _extractedContent.GetOrderedNamesWithFrequency();

            return(orderedByFrequencyAndAlphabetic.Select(item => item.Name + ", " + item.Frequency).ToList());
        }