示例#1
0
        public async Task UpdateReservation_ReservationExisting_ReservationUpdated()
        {
            var newPricePerNight = 50;
            var guestId          = 1;
            var reservation      = await reservationRepository
                                   .FirstAsync(new GuestReservationSpecification(guestId));

            await reservationRepository.UpdateAsync(reservation);

            reservation = await reservationRepository
                          .FirstAsync(new GuestReservationSpecification(guestId));

            Assert.That(reservation.TotalPrice, Is.EqualTo(newPricePerNight));
        }