public ChildCheckedOutDomainEventDomainEventHandler(
     ISchoolReadOnlyRepository schoolReadOnlyRepository,
     ISchoolWriteOnlyRepository schoolWriteOnlyRepository)
 {
     this.schoolReadOnlyRepository = schoolReadOnlyRepository ??
                                     throw new ArgumentNullException(nameof(schoolReadOnlyRepository));
     this.schoolWriteOnlyRepository = schoolWriteOnlyRepository ??
                                      throw new ArgumentNullException(nameof(schoolWriteOnlyRepository));
 }
 public TeacherAddedDomainEventDomainEventHandler(
     ISchoolReadOnlyRepository schoolReadOnlyRepository,
     ISchoolWriteOnlyRepository schoolWriteOnlyRepository)
 {
     this.schoolReadOnlyRepository = schoolReadOnlyRepository ??
                                     throw new ArgumentNullException(nameof(schoolReadOnlyRepository));
     this.schoolWriteOnlyRepository = schoolWriteOnlyRepository ??
                                      throw new ArgumentNullException(nameof(schoolWriteOnlyRepository));
 }