public void Analyze_usage_in_specific_period(Period period, bool isEmpty) { MedicationUsageReportService medicationUsageReportService = new MedicationUsageReportService(CreateReportStubRepository(), CreateUsageStubRepository()); List <MedicationUsageReport> reports = (List <MedicationUsageReport>)medicationUsageReportService.GetForSpecificPeriod(period); isEmptyUsage(reports).ShouldBe(isEmpty); }
public void Analyze_reports_in_specific_period(Period period, bool isEmpty) { MedicationUsageReportService medicationUsageReportService = new MedicationUsageReportService(CreateReportStubRepository(), CreateUsageStubRepository()); List <MedicationUsageReport> reports = medicationUsageReportService.GetForSpecificPeriod(period); reports.IsNullOrEmpty().ShouldBe(isEmpty); }