Example #1
0
 public PatientService(ICardioMonitorContextFactory contextFactory,
                       [NotNull] IEventBus eventBus)
 {
     _contextFactory = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory));
     _eventBus       = eventBus;
 }
Example #2
0
 public SessionsService(
     [NotNull] ICardioMonitorContextFactory factory, [NotNull] IEventBus eventBus)
 {
     _factory  = factory ?? throw new ArgumentNullException(nameof(factory));
     _eventBus = eventBus;
 }