Exemplo n.º 1
0
        public void GetReservationTest()
        {
            ReservationSqlDAL dal = new ReservationSqlDAL(connectionString);

            List <Reservation> list = dal.GetReservation();

            Assert.AreEqual(1, list.Count());
            Assert.AreEqual("Natalie", list[0].name);
        }
Exemplo n.º 2
0
        public void MakeReservationTest()
        {
            //Arrange
            ReservationSqlDAL dal = new ReservationSqlDAL(connectionString);

            //Act
            dal.MakeReservation(1, Convert.ToDateTime("05/22/2016"), Convert.ToDateTime("05/25/2016"), "Crespo");

            List <Reservation> list = dal.GetReservation();

            //Assert
            Assert.AreEqual(2, list.Count());
            Assert.AreEqual("Crespo", list[1].name);
        }