Exemplo n.º 1
0
        internal void AddFuel()
        {
            string licensePlate = getLicensePlate();

            m_Garage.InGarage(licensePlate);
            Fuel.eFuelType fuelType = getFuelType();
            m_Garage.IsFuelMatch(fuelType, licensePlate);
            Console.Write("Please enter amount of fuel to add: ");
            float amountOfFuel = getValidFloat();

            m_Garage.AddVehicleEnergy(amountOfFuel, licensePlate);
            PromptConsoleMsg("Fuel successfully added!");
        }