示例#1
0
 public string Process(CsvData data, TemplatesProvider provider)
 {
     var table = new HtmlTableBuilder();
     var tableHtml = table.Build(data, provider);
     var formatted = string.Format(provider.HtmlPageTemplate, tableHtml);
     return formatted;
 }
示例#2
0
        public string Process(CsvData data, TemplatesProvider provider)
        {          
            var jDatas = from row in data.Rows
                         group row by row.PlainData[2] into grouped
                         select new JMeterData(grouped.ToList(), grouped.Key.Trim());

            var sb = new StringBuilder();

            foreach (var methodData in jDatas)
            {
                var summaryTable = new HtmlSummaryBuilder().Build(methodData.Summary, methodData.MethodName, provider);
                sb.Append(summaryTable);
            }


            var allResultstable = new HtmlTableBuilder().Build(data, provider);

            var formatted = string.Format(provider.HtmlPageTemplate, sb.ToString(), allResultstable);
            return formatted;
        }