/// <summary> /// This method performs validation to check that the userchoice is valid /// </summary> /// <param name="userChoice"> Users Choice inputted for action</param> /// <returns>Flag indicating the users choice is valid or not</returns> private static bool ValidateUsersChoice(UsersFunctionChoices userChoice) { var isValidUserChoiceFlag = UserInputValidation.IsValidUserChoice(userChoice); return(isValidUserChoiceFlag); }
/// <summary> /// This method performs validation to check that the userchoice is valid /// </summary> /// <param name="userChoice"> Users Choice inputted for action</param> /// <returns>Flag indicating the users choice is valid or not</returns> private static bool ValidateUsersChoice(TelephoneBillSystemChoices userChoice) { bool isValidUserChoiceFlag = UserInputValidation.IsValidUserChoice(userChoice); return(isValidUserChoiceFlag); }