Пример #1
0
 private void ChargeCar(ElectroCar electroCar)
 {
     _chargeCar.ChargeCar(electroCar);
 }
Пример #2
0
 public void ChargeCar(ElectroCar eCar)
 {
     eCar.Charge(100);
     Console.WriteLine(eCar.Name + " charged!");
 }
Пример #3
0
 public ElectroCar CreateNewElectroCar(string name, double weight, int hpValue, Pilot pilot)
 {
     var electro = new ElectroCar(name, null, CreateElectroEngine(hpValue), weight, null, pilot, 0);
     ChargeCar(electro);
     return electro;
 }