public function handle(CreateRoomCommand $command)
 {
     $room = Room::create(new UUID($command->roomId()), $command->name(), $command->seatCapacity());
     $this->repository->save($room, $command->aggregateVersion());
 }
Beispiel #2
0
 /**
  * @depends testBookSeat
  */
 public function testOverbook(Room $room)
 {
     $this->setExpectedException('Exception');
     $room->bookSeat();
     $room->bookSeat();
 }