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(); }
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) =
public void SetDoors(DoorsEnum doors) { this.Doors = doors; }