/**
  * @test
  */
 public function it_happend_to_an_activity()
 {
     $id = ActivityId::generate();
     $event = new ActivityRescheduled($id, Schedule::forPeriod(new DateTimeImmutable('2015-10-03 14:30'), new DateTimeImmutable('2015-10-03 15:30')));
     $this->assertEquals($id, $event->activityId());
     $this->assertEquals(Schedule::forPeriod(new DateTimeImmutable('2015-10-03 14:30'), new DateTimeImmutable('2015-10-03 15:30')), $event->schedule());
 }
 protected function applyActivityRescheduled(ActivityRescheduled $event)
 {
     $this->schedule = $event->schedule();
 }