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");
            }