Ejemplo n.º 1
0
 internal void ProcessOrder(OrderInfo orderInfo)
 {
     _billingProcessor.ProcessPayment(orderInfo.CustomerName, orderInfo.CreditCard, orderInfo.Price);
     _logger.Log("Billing processed");
     _customerProcessor.UpdateCustomer(orderInfo.CustomerName);
     _logger.Log("Updated to customer");
     _notifier.SendReceipt(orderInfo);
     _logger.Log("Receipt sent");
 }
Ejemplo n.º 2
0
 public void ProcessOrder(OrderInfo orderInfo)
 {
     _billingProcessor.ProcessPayment(orderInfo.CustomerName, orderInfo.CreditCard, orderInfo.Price);
     _logger.Log("Billing Processed");
     _customer.UpdateCustomerOrder(orderInfo.CustomerName, orderInfo.Product);
     _logger.Log("Customer updated");
     _notifier.SendReceipt(orderInfo);
     _logger.Log("Receipt sent");
 }