Ejemplo n.º 1
0
        public QuestionDetailsContentViewModel GetDetails([FromUri] int QuestionId, string questionType)
        {
            int assessmentId = Auth.AssessmentForUser();

            QuestionsManager qm = new QuestionsManager(assessmentId);

            return(qm.GetDetails(QuestionId, questionType));
        }
Ejemplo n.º 2
0
        public QuestionDetailsContentViewModel GetDetails([FromUri] int QuestionId, bool IsComponent, bool IsMaturity)
        {
            int assessmentId = Auth.AssessmentForUser();

            QuestionsManager qm = new QuestionsManager(assessmentId);

            return(qm.GetDetails(QuestionId, IsComponent, IsMaturity));
        }
Ejemplo n.º 3
0
        public QuestionDetailsContentViewModel GetDetails([FromUri] int QuestionId, bool IsComponent)
        {
            int    assessmentId    = Auth.AssessmentForUser();
            string applicationMode = GetApplicationMode(assessmentId);

            QuestionsManager qm = new QuestionsManager(assessmentId);

            return(qm.GetDetails(QuestionId, assessmentId, IsComponent));
        }
Ejemplo n.º 4
0
 public void GetDetailsTest()
 {
     ANSWER newAnswer = new ANSWER()
     {
         Is_Requirement             = false,
         Question_Or_Requirement_Id = 14,
         Answer_Text     = AnswerEnum.UNANSWERED.GetStringAttribute(),
         Mark_For_Review = false,
         Is_Component    = false
     };
     //TODO a setup and teardown that creates the assessment and then destroys it
     QuestionsManager manager = new QuestionsManager(26);
     QuestionDetailsContentViewModel viewModel = manager.GetDetails(14, 26, false);
 }