Exemple #1
0
        public void BookReservationCheckIn_Test()
        {
            //Arrange
            var reservationRepo = new ReservationRepo(unitOfWorkMocked.Object);

            var arrivalDate  = DateTime.Now;
            var depatureDate = arrivalDate.AddDays(5);

            //Act
            var reservation = new Reservation()
            {
                Guest = guest, Room = room, Status = ReservationStatus.Booked.ToString()
            };
            var checkedIn = reservationRepo.CheckIn(reservation);

            //Assert
            Assert.IsTrue(checkedIn.Status == ReservationStatus.CheckedIn.ToString());
        }