public DeploymentReport(string title) { _document = new HtmlDocument { Title = title }; _document.AddStyle(getCss()); _document.AddJavaScript(getJs("jquery-1.6.1.min.js")); _document.AddJavaScript(getJs("sneaky.js")); _document.AddStyle(".header {text-indent:20px;background:" + getPngAsCssData("bullet_arrow_right.png") + " 5px 13px no-repeat; cursor:pointer;}"); _document.AddStyle(".expanded {background:" + getPngAsCssData("bullet_arrow_down.png") + " 5px 13px no-repeat}"); _document.Push("div").AddClass("main"); _document.Add("h1").Text(title); }
public void Start(string description, DateTime runningTime) { _document = new HtmlDocument(); _document.AddStyle(HtmlClasses.CSS()); _document.Add("h1").Text(description); _document.AddJavaScript(HtmlClasses.JQuery()); _document.AddJavaScript(HtmlClasses.SummaryFilter()); _document.Add("div").Text("Executed at {0}".ToFormat(runningTime)).AddClass(HtmlClasses.CAPTION); _document.Add("hr"); // _document and _table are HtmlTag objects _table = _document.Add("table"); _table.Add("thead/tr", x => { x.Add("th").Text("Test"); x.Add("th").Text("Lifecycle"); x.Add("th").Text("Result"); }); _tbody = _table.Add("tbody"); }