Exemplo n.º 1
0
        private void ExecuteSimpleFactoryExample()
        {
            var simpleFactory      = new SimpleFactory.AutomobileFactory();
            var automobileShowroom = new SimpleFactory.AutomobileShowroom(simpleFactory);
            var car = automobileShowroom.OrderCar(CarTypes.Mpv);

            Logger.AddLineBreak();
        }
Exemplo n.º 2
0
 public AutomobileShowroom(AutomobileFactory factory)
 {
     _factory = factory;
 }