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");
        }
示例#2
0
        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);
        }