private void validationOfMotorcycle(Dictionary <string, string> i_MotorcycleInfo) { PropertiesValidation.ValidateLisenceNumber(i_MotorcycleInfo["Lisence number:"]); PropertiesValidation.EnumValidation <Motorcycle.eLicenseType>(i_MotorcycleInfo["License type:"], "license"); PropertiesValidation.PositiveIntEngineCapaityValidation(i_MotorcycleInfo["Engine capacity:"]); }
private void validationOfCar(Dictionary <string, string> i_CarInfo) { PropertiesValidation.ValidateLisenceNumber(i_CarInfo["Lisence number:"]); PropertiesValidation.EnumValidation <Car.eColor>(i_CarInfo["Car's color:"], "Car's color:"); PropertiesValidation.ValidateNumberOfDoors(i_CarInfo["Number of doors:"]); }
private static void validationOfFuelEngine(Dictionary <string, string> i_FuelEngineInfo) { validationOfEngine(i_FuelEngineInfo["Current fuel amount:"], i_FuelEngineInfo["max fuel amount:"]); PropertiesValidation.EnumValidation <FuelEngine.eFuelType>(i_FuelEngineInfo["Fuel type:"], "fuel"); }