Ejemplo n.º 1
0
 public Car(BrandInfo brandInfo, CarType carType, int seats, DoorsEnum doors, GearboxEnum gearboxType, EngineSpecification engine, List <Extra> extras)
 {
     BrandInfo           = brandInfo;
     Type                = carType;
     Seats               = seats;
     Doors               = doors;
     GearboxType         = gearboxType;
     EngineSpecification = new EngineSpecification(engine);
     Extras              = new List <Extra>(extras);
     Id = Guid.NewGuid();
 }
Ejemplo n.º 2
0
 public Car(CarClassesEnum carClass, CarTypeEnum carType, int seats, DoorsEnum doorsEnum, GearBoxEnum gearBoxEnum,
            EngineSpecification engine, BrandInfo brandInfo, ICollection <Extra> extras = null)
 => (Id, CarClass, Type, Seats, Doors, GearBoxType, EngineSpecification, BrandInfo, Extras) =
Ejemplo n.º 3
0
 public void SetDoors(DoorsEnum doors)
 {
     this.Doors = doors;
 }