示例#1
0
        public void TestGetQuestionByID()
        {
            QuestionRepository questionRepo = new QuestionRepository(DatabaseDummy.DatabaseDummyCreate("TestGetQuestionByID"));

            try
            {
                var question = questionRepo.GetByID(10);
                Assert.True(true);
            }
            catch
            {
                Assert.True(false);
            }
        }
示例#2
0
 public void GetById_WillReturn_Records()
 {
     Assert.True(_db.GetByID(1).QuestionId == 1);
 }