Esempio n. 1
0
 public void constructDocument(InvoiceBuilder invoiceBuilder, Order order, List <ProductDecorator> shoppingCartDecoratorsList, List <Product> shoppingCartList)
 {
     invoiceBuilder.AddReceiptTitle();
     invoiceBuilder.AddSellerInfo();
     invoiceBuilder.AddDate();
     invoiceBuilder.AddPrice(order.Price);
     invoiceBuilder.AddProductsInfo(shoppingCartList.ToList(), shoppingCartDecoratorsList);
 }
Esempio n. 2
0
 public void constructDocument(InvoiceBuilder invoiceBuilder, Order order, List <ProductDecorator> shoppingCartDecoratorsList, List <Product> shoppingCartList)
 {
     invoiceBuilder.AddInvoiceTitle();
     invoiceBuilder.AddSellerInfo();
     invoiceBuilder.AddDate();
     invoiceBuilder.AddCustomerInfo(order.Customer);
     invoiceBuilder.AddPrice(order.Price);
     invoiceBuilder.AddPaymentMethodInfo(order.PaymentMethod);
     invoiceBuilder.AddShippingMethodInfo(order.ShippingMethod);
     invoiceBuilder.AddProductsInfo(shoppingCartList.ToList(), shoppingCartDecoratorsList);
 }