Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var shippingCalculator = new ShippingCalculator();
            var orderProcessor     = new OrderProcessor(shippingCalculator);

            var order = new Order()
            {
                TotalPrice = 100f
            };

            orderProcessor.Process(order);
        }
Exemplo n.º 2
0
 public OrderProcessor()
 {
     _shippingCalculator = new ShippingCalculator();
 }