public AssignRoom(
     ReservationId reservationId,
     Room.RoomId roomId)
     : base(reservationId)
 {
     RoomId = roomId;
 }
 public RoomAssigned(ReservationId id, Room.RoomId roomId)
 {
     Id     = id;
     RoomId = roomId;
 }
Beispiel #3
0
 public RoomOccupyRequested(Room.RoomId roomId, DateTime arrival, DateTime departure)
 {
     RoomId    = roomId;
     Arrival   = arrival;
     Departure = departure;
 }
 public void AssignRoom(Room.RoomId roomId)
 {
     CheckStateIs(State.Reserved);
     Emit(new RoomAssigned(Id, roomId));
 }