예제 #1
0
        public void GetLastReservationDetails_Test()
        {
            // ARRANGE
            IReserveDAO reservation = new ReservationDAO(connectionString);

            int      venue_id       = 267;
            int      numOfAttendees = 1;
            DateTime start_date     = new DateTime(2020, 10, 25);
            int      numOfDays      = 1;
            int      intUserSpaceID = 999;
            string   userName       = "******";

            // ACT
            int         count   = reservation.MakeReservation(venue_id, numOfAttendees, start_date, numOfDays, intUserSpaceID, userName);
            Reservation lastRes = reservation.GetLastReservationDetails(1);

            // ASSERT
            Assert.AreEqual("Test Person", lastRes.reserved_for);
        }