Esempio n. 1
0
        public static void Main(string[] args)
        {
            AbstractDeliveryVehicleFactory factory = new CountingDeliveryVehicleFactory();

            var deliveryApp = new DeliveryApp();

            deliveryApp.PlanDelivery(factory);
        }
Esempio n. 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
        }