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