public void データなし() { var list = _MonthlyReportBuilder.Build(new DailyWorkResults { WorkingTimeRecordForReports = new WorkingTimeRecordForReport[0] }); Assert.IsTrue(list.Length == 0); }
public ExportResult Export(YearMonth yearMonth, string path, bool autoAdjust) { var builder = new MonthlyReportBuilder(yearMonth); var workRecords = _DailyWorkRecordQueryService.SelectByYearMonth(yearMonth); var summary = builder.Build(workRecords); return(_ReportDriver.ExportMonthlyReport(summary, path, autoAdjust)); }