Exemplo n.º 1
0
        public void MakeaReservation_ReturnsCount()
        {
            // Arrange
            ReservationSqlDAL dal = new ReservationSqlDAL(ConnectionString);
            int initialCount      = dal.CountReservations(CampsiteId);

            // Act
            dal.ReserveCampsite(CampsiteId, new DateTime(2018, 09, 01), new DateTime(2018, 09, 08), "Cray-Smith");
            int newCount = dal.CountReservations(CampsiteId);

            // Assert
            Assert.AreEqual(initialCount + 1, newCount);
        }