public List <Answer_Components_Exploded_ForJSON> GetOverrideQuestions([FromUri] int question_id, int Component_Symbol_Id) { int assessmentId = Auth.AssessmentForUser(); QuestionsManager questionsManager = new QuestionsManager(assessmentId); return(questionsManager.GetOverrideQuestions(assessmentId, question_id, Component_Symbol_Id)); }
public void GetOverrideQuestionsTest() { using (CSET_Context db = new CSET_Context()) { var test = db.ASSESSMENTS.FirstOrDefault(); if (test == null) { Assert.Fail("no data to test"); } try { QuestionsManager manager = new QuestionsManager(test.Assessment_Id); List <Answer_Components_Exploded_ForJSON> list = manager.GetOverrideQuestions(16, 1586, Constants.FIREWALL); Assert.IsTrue(list.Count > 0); } catch (Exception e) { throw e; } } }