示例#1
0
        static void Main(string[] args)
        {
            var testRunner = new TestRunner();

            CompositionServices.ComposeParts(testRunner);

            testRunner.RunTests();
        }
示例#2
0
        static void Main(string[] args)
        {
            var duck = new Duck();

            CompositionServices.ComposeParts(duck);

            duck.MakeSound();

            Console.Read();
        }