public static ReportModel ToReportModel(this IEnumerable<Story> stories) { var report = new ReportModel(); foreach (var story in stories) { report.Stories.Add(story.ToStoryModel()); } return report; }
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(); }