Beispiel #1
0
 public RoomBookingRow(Guid id, RoomType roomType, DateTime fromDate, int duration, decimal?price, RoomBookingStatus status)
 {
     Id       = id;
     RoomType = roomType;
     FromDate = fromDate;
     Duration = duration;
     Price    = price;
     Status   = status;
 }
Beispiel #2
0
 public static void ShouldContainRoomBookingStatus(this IEnumerable <BookingStatusType> actualBookingStatusTypes, RoomBookingStatus expectedRoomBookingStatus)
 {
     actualBookingStatusTypes.Should().Contain(rt =>
                                               rt.Title == expectedRoomBookingStatus.ToString() &&
                                               rt.Id == (int)expectedRoomBookingStatus);
 }