public Client(ICar factory)
 {
     place       = factory.ShowPlace();
     body        = factory.CreateBodyType();
     power       = factory.CreatePower();
     consumption = factory.CreateConsumption();
 }
Exemple #2
0
 public Body(int bodyId, MetaInfo metaInfo, IBodyType bodyType, IBodyClass bodyClass)
 {
     BodyId    = bodyId;
     MetaInfo  = metaInfo;
     BodyType  = bodyType;
     BodyClass = bodyClass;
 }
Exemple #3
0
 public CarBase(IBodyType bodyType, IBrand brand, IModel model, IColor color, decimal price)
 {
     VIN = $"{brand.BrandName.ToUpper()[0]}" +
           $"{bodyType.BodyName.ToUpper()[0]}" +
           $"{Guid.NewGuid():N}";
     BodyType = bodyType;
     Brand = brand;
     Model = model;
     Color = color;
     Price = price;
 }
Exemple #4
0
 public Suv(IBodyType bodyType, IBrand brand, IModel model, IColor color, decimal price)
     : base(bodyType, brand, model, color, price)
 {
 }