public Student() { RegisterEventAppliers() .For <IStudentRegisteredEvent>(Apply) .For <IAddressChangedEvent>(Apply) .For <IStudentEnrolledEvent>(e => Enrollments.Add(new Enrollment(this, e.EnrollmentId))) .For <IEnrollmentEvent>( e => Enrollments.Single(enrollment => enrollment.Id == e.EnrollmentId).ApplyEvent(e)); }