public void GetInvoicesForDateRangeReturnsInvoices()
        {
            List <PhysicianInvoice> medicalVendorInvoices = _repository.
                                                            GetInvoicesForDateRange(new DateTime(1900, 1, 1), DateTime.Today);

            Assert.IsNotNull(medicalVendorInvoices, "Null invoice collection returned.");
            Assert.IsNotEmpty(medicalVendorInvoices, "Empty invoice collection returned.");
        }
        public List <MedicalVendorPaymentPodViewData> GetPodViewDataForDateRange(DateTime startDate, DateTime endDate)
        {
            List <PhysicianInvoice> medicalVendorInvoices = _medicalVendorInvoiceRepository.
                                                            GetInvoicesForDateRange(startDate, endDate);
            var medicalVendorInvoiceItems = new List <MedicalVendorInvoiceItem>();

            foreach (var medicalVendorInvoice in medicalVendorInvoices)
            {
                medicalVendorInvoiceItems.AddRange(medicalVendorInvoice.MedicalVendorInvoiceItems);
            }
            return(_podViewDataFactory.CreatePodViewData(medicalVendorInvoiceItems));
        }