Exemplo n.º 1
0
        public void AddReservationTests()
        {
            //Arrange, Act, Assert
            ReservationDAO dao = new ReservationDAO(connectionString);

            Reservation reservation = new Reservation()
            {
                SiteId     = newSiteId,
                Name       = "No-Name Family Reservation",
                FromDate   = DateTime.Today.AddDays(14),
                ToDate     = DateTime.Today.AddDays(21),
                CreateDate = DateTime.Today
            };

            int expectedResult = dao.AddReservation(reservation);

            Assert.AreEqual(newReservationId + 1, expectedResult);
        }