Esempio n. 1
0
 private void _copyBatteryData(Battery battery) {
    //if any new property will be added to Battery we have test for this case
    Id = battery.Id.LocalId.ToString();
    FirstUsageDate = battery.FirstUsageDate;
    Grade = battery.Grade;
    ManufacturingDate = battery.ManufacturingDate;
    RFID = battery.RFID;
    SerialNumber = battery.SerialNumber;
    EquipmentStatus = battery.EquipmentStatus;
    Type = battery.Type;
 }
Esempio n. 2
0
 /// <summary>Constructs a new instance of BXChargingOperation.</summary>
 /// <param name="battery"></param>
 /// <param name="batteryMetrics"></param>
 public BXBattery(Battery battery, BatteryMetrics batteryMetrics) {
    _copyBatteryData(battery);
    BatteryMetrics = batteryMetrics;
    GotToStation = DateTime.Now;
    ChargeEndedReport = null;
 }
Esempio n. 3
0
 /// <summary>Constructs a new instance of BXChargingOperation.</summary>
 /// <param name="battery"></param>
 public BXBattery(Battery battery)
    : this(battery, new BatteryMetrics()) {
 }