public virtual void Refuel(double amount)
        {
            ExceptionMessage.CheckFuelQuantity(this.FuelQuantity, amount, this.TankCapacity);

            this.FuelQuantity += amount;
        }
Example #2
0
        public override void Refuel(double amount)
        {
            ExceptionMessage.CheckFuelQuantity(this.FuelQuantity, amount, this.TankCapacity);

            base.Refuel(amount * FUEL_DECREASE);
        }