常用方法
常用方法
常用方法
常用方法
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)); }