using System.Text; using PdfService.Models; namespace PdfService.Utility { public static class TemplateGenerator { public static string GetHTMLString(Tweet[] tweets) { var sb = new StringBuilder(); sb.Append(@"

Tweet Sentiment Analysis

Results for the terms

Generated report only contains mocked data. Will be changed later.
"); foreach (var tweet in tweets) { sb.AppendFormat(@"

{0}

{1}
", tweet.Name, tweet.Sentiment); } sb.Append(@"
"); return sb.ToString(); } } }