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