예제 #1
0
        public IList <IQuestion> GetUserAnswers()
        {
            // New & Better - Bai Grozdan
            questions.ToList().ForEach(x =>
            {
                var sendQuestion = userInteraction.AskUser(x.Text, x.SameLine);
                if (!string.IsNullOrEmpty(sendQuestion))
                {
                    x.Answer = sendQuestion.First().ToString().ToUpper() + sendQuestion.Substring(1);
                }
            });

            return(questions);
        }