public void TestMethod_ShouldRetrunQuestionSet()
        {
            // todo: this test breaks if there is a test Id in the view model. But at the moment
            // I can not remove that as I don't know where that TestId is required.
            var questionSet = _questionSetService.GetQuestionsByQuestionSetId(2);

            Assert.IsNotNull(questionSet);
        }
        public HttpResponseMessage GetQuestionsByQuestionSetId(int questionSetId)
        {
            try
            {
                var result = _questionSetService.GetQuestionsByQuestionSetId(questionSetId);
                if (result == null)
                {
                    return(Request.CreateResponse(HttpStatusCode.NotFound, ""));
                }

                return(Request.CreateResponse(HttpStatusCode.OK, result));
            }
            catch (Exception ex)
            {
                Logger.Warn(ex.Message, ex);
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }