public void SendReports()
        {
            var reportBuilder = new ReportBuilder();
            IList<Report> reports = reportBuilder.CreateReports();

            if (reports.Count == 0)
                throw new NoReportsException();

            var reportSender = new EmailReportSender();
            foreach (Report report in reports)
            {
                reportSender.Send(report);
            }
        }
        public void SendReports()
        {
            var            reportBuilder = new ReportBuilder();
            IList <Report> reports       = reportBuilder.CreateReports();

            if (reports.Count == 0)
            {
                throw new NoReportsException();
            }

            var reportSender = new EmailReportSender();

            foreach (Report report in reports)
            {
                reportSender.Send(report);
            }
        }