protected function applyCommitteeInstantiated(CommitteeInstantiated $event)
 {
     $this->id = $event->committeeId();
     $this->name = $event->name();
     $this->goal = $event->goal();
 }
 public function whenCommitteeInstantiated(CommitteeInstantiated $event)
 {
     $committee = new CommitteesList($event->committeeId(), $event->name(), $event->goal());
     $this->committees->save($committee);
 }
 /**
  * @test
  */
 public function it_is_serializable()
 {
     $id = CommitteeId::generate();
     $event = new CommitteeInstantiated($id, 'name', 'goal');
     $this->assertEquals($event, CommitteeInstantiated::deserialize($event->serialize()));
 }