コード例 #1
0
        public void Scenario_SaveReview_Test()
        {
            //Arrange
            IScenarioDAL dao     = new ScenarioDAL(ConnectionString);
            bool         isAdded = false;


            //Action
            isAdded = dao.SaveReview(1, 1);
            //Assert
            Assert.IsTrue(isAdded);
        }
コード例 #2
0
        public void Scenario_GetResponse_Test()
        {
            //Arrange
            IScenarioDAL dao      = new ScenarioDAL(ConnectionString);
            bool         newScene = dao.SaveReview(1, 1);

            //Action
            Answer newAnswer = dao.GetResponse(1);

            //Assert
            Assert.AreEqual("A) Sure", newAnswer.AnswerText);
        }
コード例 #3
0
        public void Scenario_GetReview_Test()
        {
            //Arrange
            IScenarioDAL dao = new ScenarioDAL(ConnectionString);

            bool nextScenario = dao.SaveReview(1, 1);


            //Action
            List <Review> testList = new List <Review>();

            testList = dao.GetReview(1);

            //Assert
            Assert.AreEqual(1, testList.Count);
        }