public string ListQuestionsAndAnswers(IEnumerable <QuestionAndAnswer> questionsAndAnswers)
        {
            var adapter = new QuestionsAndAnswersDbAdapter(questionsAndAnswers);

            dataRenderer = new DataRenderer(adapter);

            var writer = new StringWriter();

            dataRenderer.Render(writer);

            return(writer.ToString());
        }
        public (string, int) ListTopicsAndScores(IEnumerable <QuestionAndAnswer> questionsAndAnswers)
        {
            var adapter = new EvaluationDbAdapter(questionsAndAnswers);

            dataRenderer = new DataRenderer(adapter);

            var writer = new StringWriter();

            dataRenderer.Render(writer);

            return(writer.ToString(), GetScore(questionsAndAnswers));
        }