public void ShouldWriteFail() { var rpt = new DeploymentReport("HI"); LoggingSession session = new LoggingSession(); session.LogFor("hi").MarkFailure("BOOM!"); session.HasErrors().ShouldBeTrue(); rpt.WriteSuccessOrFail(session); rpt.Document.WriteToFile("bob.html"); }
public void WriteReport(DeploymentOptions options, DeploymentPlan plan) { var report = new DeploymentReport("Deployment Report"); report.WriteDeploymentPlan(plan); report.WriteLoggingSession(_diagnostics.Session); ConsoleWriter.Line(); ConsoleWriter.PrintHorizontalLine(); ConsoleWriter.Write("Writing deployment report to " + options.ReportName.ToFullPath()); report.Document.WriteToFile(options.ReportName); }