Example #1
0
        private static string GetReversedString(string input)
        {
            if (input == null)
            {
                return("Invalid");
            }

            return(StringTransformers.ReverseString(input));
        }
Example #2
0
        private static string GetStringStacked(string input)
        {
            var stackedString = StringTransformers.StackString(input);

            if (stackedString == null)
            {
                return("Invalid");
            }

            return(stackedString);
        }
Example #3
0
        private static string GetStringNumericallyDoubled(string input)
        {
            var intValue = StringTransformers.StringToInt(input);

            if (intValue == null)
            {
                return("Invalid");
            }

            return((intValue.Value * 2).ToString());
        }
Example #4
0
        private static string GetTripledAndStacked(string input)
        {
            if (input == null)
            {
                return("Invalid");
            }

            var intValue = StringTransformers.StringToInt(input);

            if (intValue == null)
            {
                return("Invalid");
            }

            var tripledAndStackedString = GetStringStacked((intValue * 3).ToString());

            if (tripledAndStackedString == null)
            {
                return("Invalid");
            }

            return(tripledAndStackedString);
        }