Ejemplo n.º 1
0
 public VehicleClient(IVehicleFactory factory, string type)
 {
     bike    = factory.GetBike(type);
     scooter = factory.GetScooter(type);
 }
Ejemplo n.º 2
0
 public VehicleClient(IVehicleFactory factory, string type)
 {
     this.bike        = factory.GetBike(type);
     this.scooter     = factory.GetScooter(type);
     this.factoryType = factory.GetType().Name;
 }
Ejemplo n.º 3
0
 public Component(IScooter scooter, Dimension _dimension) : base(_dimension)
 {
     _scooter = scooter;
 }
Ejemplo n.º 4
0
 public Client(IVehicle vehicle, string type)
 {
     _bike    = vehicle.GetBike(type);
     _scooter = vehicle.GetScooter(type);
 }