Esempio n. 1
0
        public void AddEnergyToVehicle(string i_LicenseNumber, float i_AmountOfEnergyToAdd, Motor.eFuelType i_FuelType = 0)
        {
            Vehicle desiredVehicle = getVehicleByLicenseNumber(i_LicenseNumber);

            if (desiredVehicle.Equals(null))
            {
                throw new KeyNotFoundException(k_VehicleNotFoundMessage);
            }

            desiredVehicle.AddEnergyToMotor(i_AmountOfEnergyToAdd, i_FuelType);
        }