// $G$ CSS-029 (-5) Bad code duplication. private void insertLicenseType(Motorcycle i_NewMotorcycle) { int licenseType; Motorcycle.eLisenceType licenseOptions = new Motorcycle.eLisenceType(); string PartOfOptionsHeaderMsg = string.Format("license type"); licenseType = m_InputUI.MakeArrayOfStringFromEnum(PartOfOptionsHeaderMsg, licenseOptions); i_NewMotorcycle.LicenseType = (Motorcycle.eLisenceType)licenseType; }
private void insertLicenseType(Motorcycle i_NewMotorcycle) { int licenseType; Motorcycle.eLisenceType licenseOptions = new Motorcycle.eLisenceType(); string PartOfOptionsHeaderMsg = string.Format("license type"); licenseType = UI.GetSpecificEnumInput(PartOfOptionsHeaderMsg, licenseOptions); i_NewMotorcycle.LicenseType = (Motorcycle.eLisenceType)licenseType; }