private static void SetupMockRepository() { var _subjectRepository = new List <Subject> { new Subject() { SubjectId = 2, Name = "Subject 1" }, new Subject() { SubjectId = 1, Name = "Subject 2" } }; _unitOfWork.SetDataSource(_subjectRepository); }
private static void SetupMockRepository() { var _gradeRepository = new List <Grade> { new Grade() { GradeId = 2, Name = "Grade 1" }, new Grade() { GradeId = 1, Name = "Grade 2" } }; _unitOfWork.SetDataSource(_gradeRepository); }
private static void SetupMockRepository() { var _gradeSubjectRepository = new List <GradeSubject> { new GradeSubject() { GradeSubjectId = 6, GradeId = 2, Grade = new Grade { Name = "Grade 1", GradeId = 1 }, SubjectArea = new SubjectArea { Name = "SubjectArea 1", Subject = new Subject { Name = "Subject 1" } } }, new GradeSubject() { GradeSubjectId = 7, GradeId = 1, Grade = new Grade { Name = "Grade 2", GradeId = 2 }, SubjectArea = new SubjectArea { Name = "SubjectArea 2", Subject = new Subject { Name = "Subject 2" } } } }; _unitOfWork.SetDataSource(_gradeSubjectRepository); }
private static void SetupMockRepository() { var _questionRepository = new List <Question> { new Question() { QuestionId = 1, Name = "Question 1", SubjectAreaId = 12, AnswerTypeId = 2, ComplexityId = 4, AnswerOptions = new List <AnswerOption> { new AnswerOption() { Name = "Answer Option 1", CorrectAnswerOption = true }, new AnswerOption() { Name = "Answer Option 2", CorrectAnswerOption = false }, new AnswerOption() { Name = "Answer Option 3", CorrectAnswerOption = false } }, Explanations = new List <Explanation> { new Explanation() { Name = "Explanation 1" }, new Explanation() { Name = "Explanation 2" }, new Explanation() { Name = "Explanation 3" } } }, new Question() { QuestionId = 2, Name = "Question 2", SubjectAreaId = 12, AnswerTypeId = 2, ComplexityId = 4, AnswerOptions = new List <AnswerOption> { new AnswerOption() { Name = "Answer Option 11", CorrectAnswerOption = false }, new AnswerOption() { Name = "Answer Option 21", CorrectAnswerOption = true }, new AnswerOption() { Name = "Answer Option 31", CorrectAnswerOption = false } }, Explanations = new List <Explanation> { new Explanation() { Name = "Explanation 11" }, new Explanation() { Name = "Explanation 21" }, new Explanation() { Name = "Explanation 31" } } } }; _unitOfWork.SetDataSource(_questionRepository); }
private static void SetupMockRepository() { var _questionSetRepository = new List <QuestionSet> { new QuestionSet() { QuestionSetId = 1, TestId = 10, QuestionSetQuestions = new List <QuestionSetQuestion>() { new QuestionSetQuestion { QuestionSetQuestionId = 23, QuestionId = 1, QuestionSetId = 1, Question = new Question { Name = "Test Question 1", AnswerTypeId = 2, QuestionId = 3, AnswerOptions = new List <AnswerOption>() { new AnswerOption { AnswerOptionId = 1, Name = "Answer Option 1", CorrectAnswerOption = true }, new AnswerOption { AnswerOptionId = 2, Name = "Answer Option 2", CorrectAnswerOption = false } } } } } }, new QuestionSet() { QuestionSetId = 2, TestId = 11, QuestionSetQuestions = new List <QuestionSetQuestion>() { new QuestionSetQuestion { QuestionSetQuestionId = 23, QuestionId = 1, QuestionSetId = 2, Question = new Question { Name = "Test Question 1", AnswerTypeId = 2, QuestionId = 3, AnswerOptions = new List <AnswerOption>() { new AnswerOption { AnswerOptionId = 1, Name = "Answer Option 1", CorrectAnswerOption = true }, new AnswerOption { AnswerOptionId = 2, Name = "Answer Option 2", CorrectAnswerOption = false } } } } } } }; _unitOfWork.SetDataSource(_questionSetRepository); }