public Client(ICar factory) { place = factory.ShowPlace(); body = factory.CreateBodyType(); power = factory.CreatePower(); consumption = factory.CreateConsumption(); }
public Body(int bodyId, MetaInfo metaInfo, IBodyType bodyType, IBodyClass bodyClass) { BodyId = bodyId; MetaInfo = metaInfo; BodyType = bodyType; BodyClass = bodyClass; }
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; }
public Suv(IBodyType bodyType, IBrand brand, IModel model, IColor color, decimal price) : base(bodyType, brand, model, color, price) { }