Exemple #1
0
 public PersonStorage(IEventStreamStorage <PersonEntity> eventingStorage, IQueryStorage <Person> queryStorage)
 {
     queryStorage.GuardAgainstNull(nameof(queryStorage));
     eventingStorage.GuardAgainstNull(nameof(eventingStorage));
     this.queryStorage    = queryStorage;
     this.eventingStorage = eventingStorage;
 }
Exemple #2
0
 public CarStorage(IEventStreamStorage <CarEntity> carEventStreamStorage,
                   IQueryStorage <Car> carQueryStorage,
                   IQueryStorage <Unavailability> unavailabilitiesQueryStorage)
 {
     carQueryStorage.GuardAgainstNull(nameof(carQueryStorage));
     carEventStreamStorage.GuardAgainstNull(nameof(carEventStreamStorage));
     unavailabilitiesQueryStorage.GuardAgainstNull(nameof(unavailabilitiesQueryStorage));
     this.carQueryStorage              = carQueryStorage;
     this.carEventStreamStorage        = carEventStreamStorage;
     this.unavailabilitiesQueryStorage = unavailabilitiesQueryStorage;
 }
 public ClinicStorage(IEventStreamStorage <ClinicEntity> clinicEventStreamStorage,
                      IQueryStorage <Doctor> doctorQueryStorage,
                      IQueryStorage <Unavailability> unavailabilitiesQueryStorage)
 {
     doctorQueryStorage.GuardAgainstNull(nameof(doctorQueryStorage));
     clinicEventStreamStorage.GuardAgainstNull(nameof(clinicEventStreamStorage));
     unavailabilitiesQueryStorage.GuardAgainstNull(nameof(unavailabilitiesQueryStorage));
     this.doctorQueryStorage           = doctorQueryStorage;
     this.clinicEventStreamStorage     = clinicEventStreamStorage;
     this.unavailabilitiesQueryStorage = unavailabilitiesQueryStorage;
 }