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(); }
public void PlayWithTheCar() { var rccar = _director.Construct(); Console.WriteLine($"Playing with the {rccar} rccar"); }