public AssignRoom( ReservationId reservationId, Room.RoomId roomId) : base(reservationId) { RoomId = roomId; }
public RoomAssigned(ReservationId id, Room.RoomId roomId) { Id = id; RoomId = roomId; }
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)); }