Example #1
0
        public static WeeklySummaryPost CreateWeeklySummaryContent(List <Episode> episodes)
        {
            var content = new StringBuilder();

            var post = new WeeklySummaryPost {
                Title = Title
            };

            content.AppendLine(Foreword);
            foreach (var episode in episodes)
            {
                content.AppendLine($"{TitleLine}{episode.EpisodeNum}");
                foreach (var article in episode.Articles)
                {
                    content.AppendLine($"• [{article.Title}]({article.Link})");
                }

                content.AppendLine();
            }
            content.AppendLine(Footer);
            post.Body = content.ToString();

            return(post);
        }
 public void CreateWeeklySummaryDescription(List <Episode> episodes)
 {
     logger.LogTrace("Generating Blog Post Content");
     post = WeeklySummaryContentGenerator.CreateWeeklySummaryContent(episodes);
 }