private AnswerModel GetSampleAnswerModel() { AnswerModel ansmodel = new AnswerModel(); ansmodel.Questions = sampleQuestions; ansmodel.Score = 100; return ansmodel; }
public void TestSetup() { MockQuest = new Mock<IQuest>(); target = new QuestionController(MockQuest.Object); sampleQuestions = GetSampleQuestion(10); sampleAnswers = GetSampleAnswerModel(); MockQuest.Setup(t => t.GetQuestions(10)).Returns(sampleQuestions); MockQuest.Setup(t => t.GetAnswers(It.IsAny<List<QuestionModel>>())).Returns(sampleAnswers); }