public void Process(IEnumerable <Story> stories) { var viewModel = new FileReportModel(stories.ToReportModel()); string report; try { report = _builder.CreateReport(viewModel); } catch (Exception ex) { report = ex.Message + ex.StackTrace; } _writer.OutputReport(report, "BDDfy.md"); }
void WriteOutHtmlReport(ReportModel reportModel) { Model = new HtmlReportModel(_configuration, reportModel); LoadCustomScripts(); string report; try { report = ReportBuilder.CreateReport(Model); } catch (Exception ex) { report = ex.Message + ex.StackTrace; } _writer.OutputReport(report, _configuration.OutputFileName, _configuration.OutputPath); }