private void ExecuteSimpleFactoryExample() { var simpleFactory = new SimpleFactory.AutomobileFactory(); var automobileShowroom = new SimpleFactory.AutomobileShowroom(simpleFactory); var car = automobileShowroom.OrderCar(CarTypes.Mpv); Logger.AddLineBreak(); }
public AutomobileShowroom(AutomobileFactory factory) { _factory = factory; }