protected void Page_Load(object sender, EventArgs e) { ScrumController scrumController = new ScrumController(); ScrumModel scrumModel = scrumController.GetScrumQuestions(); Label1.Text = ((Questions)scrumModel.QuestionList[0]).Question; Label2.Text = ((Questions)scrumModel.QuestionList[1]).Question; Label3.Text = ((Questions)scrumModel.QuestionList[2]).Question; answer1.ID = Convert.ToString(((Questions)scrumModel.QuestionList[0]).QuestionId); answer2.ID = Convert.ToString(((Questions)scrumModel.QuestionList[1]).QuestionId); answer3.ID = Convert.ToString(((Questions)scrumModel.QuestionList[2]).QuestionId); }
public void TestGetScrumQuestions() { ScrumController scrumController = new ScrumController(); ScrumModel scrum = scrumController.GetScrumQuestions(); Assert.IsTrue(scrum.QuestionList.Count == 3); }