private static bool GetReviews() { var reviews = ComicAnalyser.GetReviews(Comic.Catalogue, Comic.Reviews); foreach (var review in reviews) { Console.WriteLine(review); } return(false); }
private static bool GroupComicsByPrice() { var groups = ComicAnalyser.GroupComicsByPrice(Comic.Catalogue, Comic.Prices); foreach (var group in groups) { Console.WriteLine($"{group.Key} comics:"); foreach (var comic in group) { Console.WriteLine($"#{comic.Issue} { comic.Name}: {Comic.Prices[comic.Issue]:c}"); } } return(false); }