예제 #1
0
        static void Main(string[] args)
        {
            var       bootstrapper = new Bootstrapper();
            IBuilder  builder      = bootstrapper.GetBuilder();
            IDirector director     = bootstrapper.GetDirector();

            ConfigureBuilder(builder);
            director.Construct(builder);

            ComplexModule complexModule = builder.Result;

            complexModule.LogSettings();

            Console.ReadKey();
        }
예제 #2
0
            public void PlayWithTheCar()
            {
                var rccar = _director.Construct();

                Console.WriteLine($"Playing with the {rccar} rccar");
            }