public void GetAllQuestions_IsValid()
        {
            Mock <IQuestionContext> mockContext = new Mock <IQuestionContext>();

            QuestionLogic questionLogic = new QuestionLogic(mockContext.Object);

            questionLogic.GetAllQuestions();

            mockContext.Verify(x => x.GetAllQuestions(), Times.Exactly(1));
        }
        public ActionResult QuestionOverview()
        {
            List <QuestionViewModel> questionViews = new List <QuestionViewModel>();

            foreach (Question question in _questionLogic.GetAllQuestions())
            {
                questionViews.Add(new QuestionViewModel(question, _userLogic.GetUserById(question.CareRecipientId)));
            }

            return(View("../Admin/QuestionOverview", questionViews));
        }