示例#1
0
        internal static string GetBillPaymemtMode()
        {
            var billPaymentMode = UserInputGathering.GetStringInput("Enter Bill Payment Mode");

            if (!UserInputValidation.IsValidString(billPaymentMode))
            {
                throw new InvalidOperationException(" ");
            }

            return(billPaymentMode);
        }
        /// <summary>
        /// This method accepts and validates the String Input
        /// </summary>
        /// <returns>Returns the String inputted by User</returns>
        internal static string GetUserInputString()
        {
            var userInputString = UserInputGathering.GetStringInput();

            if (!UserInputValidation.IsValidString(userInputString))
            {
                throw new InvalidOperationException(" ");
            }

            return(userInputString);
        }
示例#3
0
        internal static string GetCustomerName()
        {
            var customerName = UserInputGathering.GetStringInput("Enter Customer Name");

            if (!UserInputValidation.IsValidString(customerName))
            {
                throw new InvalidOperationException(" ");
            }

            return(customerName);
        }