Ejemplo n.º 1
0
        public void ProcessOrder(ProductBaseModel productModel = null)
        {
            Console.WriteLine("Payment recieved for Video");

            if (productModel.Name == "Learning to ski")
            {
                _packageable.GeneratePackagingSlip("Learning to Ski Video and First aid");
            }
            else
            {
                _packageable.GeneratePackagingSlip("Video");
            }
        }
Ejemplo n.º 2
0
 public void ProcessOrder(ProductBaseModel productModel = null)
 {
     Console.WriteLine("Payment recieved for Book");
     _packageable.GeneratePackagingSlip("Book", 2);
     _agentCommission.GenerateCommissionPaymentToAgent();
 }