Пример #1
0
        private string getElectricVehicleByReg()
        {
            string registrationNumber = getExistingRegistrationNumberFromUser();

            if (m_Garage.CheckIfElectricVehicle(registrationNumber) == false)
            {
                throw new ArgumentException("Not electric vehicle.");
            }

            return(registrationNumber);
        }