public HtmlDocument Write() { HtmlTag header = new HtmlTag("div", x => { var table = x.Child<TableTag>() .AddBodyRow(row => { row.Cell("Request Url:"); row.Cell(_report.Url).AddClass("cell-data"); }) .AddBodyRow(row => { row.Cell("Execution Time:"); row.Cell(_report.ExecutionTime + " milliseconds"); }) .AddBodyRow(row => { row.Cell("At:"); row.Cell(_report.Time.ToString("G")); }); table.AddClass("summary"); writeFormData(x); }); var reportWriter = new DebugReportTagWriter(); _report.Steps.Each(reportWriter.WriteStep); string title = "Debug Run of " + _report.Url; return DiagnosticHtml.BuildDocument(_urls, title, header, reportWriter.Tag); }
public HtmlDocument Write() { HtmlTag header = new HtmlTag("div", x => { var table = x.Add <TableTag>() .AddBodyRow(row => { row.Cell("Request Url:"); row.Cell(_report.Url).AddClass("cell-data"); }) .AddBodyRow(row => { row.Cell("Execution Time:"); row.Cell(_report.ExecutionTime + " milliseconds"); }) .AddBodyRow(row => { row.Cell("At:"); row.Cell(_report.Time.ToString("G")); }); table.AddClass("summary"); writeFormData(x); }); var reportWriter = new DebugReportTagWriter(); _report.Steps.Each(reportWriter.WriteStep); string title = "Debug Run of " + _report.Url; return(DiagnosticHtml.BuildDocument(_urls, title, header, reportWriter.Tag)); }
public HtmlDocument Write() { HtmlTag header = new HtmlTag("div", x => { x.Child<DLTag>() .AddDefinition("Url", _report.Url) .AddDefinition("Execution Time", _report.ExecutionTime + " milliseconds") .AddDefinition("At", _report.Time.ToLongTimeString()); writeFormData(x); }); var reportWriter = new DebugReportTagWriter(); _report.Steps.Each(reportWriter.WriteStep); string title = "Debug Run of " + _report.Url; return BehaviorGraphWriter.BuildDocument(title, header, reportWriter.Tag); }