public void Scenario_SaveReview_Test() { //Arrange IScenarioDAL dao = new ScenarioDAL(ConnectionString); bool isAdded = false; //Action isAdded = dao.SaveReview(1, 1); //Assert Assert.IsTrue(isAdded); }
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); }
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); }