Пример #1
0
 public Invoice(string invoiceNumber, string purchaseOrderNumber, decimal total,
                DateTime shipDate, DateTime invoiceDate, Customer customer, 
                 IEnumerable<LineItem> items)
 {
     Total = total;
     ShipDate = shipDate;
     InvoiceDate = invoiceDate;
     InvoiceNumber = invoiceNumber;
     PurchaseOrderNumber = purchaseOrderNumber;
     Customer = customer;
     Items = items;
 }
Пример #2
0
 public PurchaseOrder(string number, Customer customer, IEnumerable<LineItem> items)
 {
     Number = number;
     Customer = customer;
     Items = items;
 }