示例#1
0
        private IList <Invoice> CreateInvoices(IList <CarePackage> carePackages)
        {
            var invoices = new List <Invoice>();

            foreach (var carePackage in carePackages)
            {
                var invoice = TestDataHelper.CreateInvoice(carePackage, 10m, 10m, 10m);
                invoice.Items = 5.ItemsOf(() => TestDataHelper.CreateInvoiceItem(invoice, _periodFrom, _periodTo));
                invoices.Add(invoice);
            }

            return(_generator.CreateInvoices(invoices));
        }