public override void ProcessOrder(TireOrder order)
 {
     if (order.TireType == TireType.Summer)
     {
         Console.WriteLine("Handling order for summer tire!");
     }
     Next?.ProcessOrder(order);
 }
Exemplo n.º 2
0
 public abstract void ProcessOrder(TireOrder order);
 public override void ProcessOrder(TireOrder order)
 {
     Console.WriteLine($"Processing order for tire: {order.Name}");
     Console.WriteLine("Checking warehouse!...");
     Next?.ProcessOrder(order);
 }