static void Main(string[] args)
        {
            var simulator = new DuckSimulator();
            AbstractDuckFactory factory = new CountingDuckFactory();

            simulator.Simulate(factory);

            // Wait for user
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            DuckSimulator simulator = new DuckSimulator();
            AbstractDuckFactory factory = new CountingDuckFactory();

            simulator.Simulate(factory);

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