public ChildCheckedOutDomainEventDomainEventHandler(
     ISchoolReadOnlyRepository schoolReadOnlyRepository,
     ISchoolWriteOnlyRepository schoolWriteOnlyRepository)
 {
     this.schoolReadOnlyRepository = schoolReadOnlyRepository ??
                                     throw new ArgumentNullException(nameof(schoolReadOnlyRepository));
     this.schoolWriteOnlyRepository = schoolWriteOnlyRepository ??
                                      throw new ArgumentNullException(nameof(schoolWriteOnlyRepository));
 }
コード例 #2
0
 public TeacherAddedDomainEventDomainEventHandler(
     ISchoolReadOnlyRepository schoolReadOnlyRepository,
     ISchoolWriteOnlyRepository schoolWriteOnlyRepository)
 {
     this.schoolReadOnlyRepository = schoolReadOnlyRepository ??
                                     throw new ArgumentNullException(nameof(schoolReadOnlyRepository));
     this.schoolWriteOnlyRepository = schoolWriteOnlyRepository ??
                                      throw new ArgumentNullException(nameof(schoolWriteOnlyRepository));
 }
コード例 #3
0
 public LeaveCommandHandler(IPublisher bus, ISchoolReadOnlyRepository schoolRepository)
 {
     this.bus = bus ?? throw new ArgumentNullException(nameof(bus));
     this.schoolRepository = schoolRepository ?? throw new ArgumentNullException(nameof(schoolRepository));
 }