예제 #1
0
        private void BeginProgram()
        {
            while (true)
            {
                char response = userInteractions.DetermineFeatureToExecute();

                if (UserResponse.IsViewCategories(response))
                {
                    DisplayCategories();
                }
                else if (UserResponse.IsGetRandomJokes(response))
                {
                    GetRandomJokes();
                }
                else if (UserResponse.IsExitProgram(response))
                {
                    return;
                }
            }
        }