public static InvoiceList GetInvoiceList() { List<Invoice> invoices = new List<Invoice> { TestModels.GetInvoice(), TestModels.GetInvoice() }; InvoiceList invoicesList = new InvoiceList { invoices = invoices }; return invoicesList; }
public InvoiceList getInvoices(InvoiceListRequest request) { var orderList = new List<Order>(); var order = new Order { id = "ORDER-5321311", date = "2015-07-10", itemCount = 2, coupon = "COUPON", currency = "GBP", preTaxTotal = 100.00, postTaxTotal = 110.00, tax = 10.00 }; orderList.Add(order); var invoiceList = new InvoiceList(); var invoce = new Invoice { email = "*****@*****.**", orderCount = 1, preTaxTotal = 100.00, postTaxTotal = 110.00, tax = 10.00, orders = orderList }; invoiceList.invoices = new List<Invoice> { invoce }; return invoiceList; }