public static ReportModel ToReportModel(this IEnumerable<Story> stories)
        {
            var report = new ReportModel();
            foreach (var story in stories)
            {
                report.Stories.Add(story.ToStoryModel());
            }

            return report;
        }
예제 #2
0
 public FileReportModel(ReportModel reportModel)
 {
     _stories = reportModel.Stories;
     Summary = new FileReportSummaryModel(reportModel);
     RunDate = DateTime.Now;
 }
 public FileReportSummaryModel(ReportModel reportModel)
 {
     _stories = reportModel.Stories;
     _scenarios = _stories.SelectMany(s => s.Scenarios).ToList();
 }
 public FileReportSummaryModel(ReportModel reportModel)
 {
     _stories   = reportModel.Stories;
     _scenarios = _stories.SelectMany(s => s.Scenarios).ToList();
 }
예제 #5
0
 public FileReportModel(ReportModel reportModel)
 {
     _stories = reportModel.Stories;
     Summary  = new FileReportSummaryModel(reportModel);
     RunDate  = DateTime.Now;
 }