Example #1
0
        public static void Main(string[] args)
        {
            AbstractDeliveryVehicleFactory factory = new CountingDeliveryVehicleFactory();

            var deliveryApp = new DeliveryApp();

            deliveryApp.PlanDelivery(factory);
        }
Example #2
0
        public static void Main(string[] args)
        {
            AbstractDeliveryVehicleFactory factory = new CountingDeliveryVehicleFactory();

            var deliveryApp = new DeliveryApp();

            deliveryApp.MakeDelivery(factory);

            Console.ReadKey(); // Wait for user input
        }