public DefaultConsentService(IConsentStore store) { if (store == null) { throw new ArgumentNullException("store"); } this._store = store; }
public AccountDeletionJob( ILoggerFactory log, IExceptionFilter exceptionFilter, IFhirClient fhirClient, IConsentStore consentStore, IVendorClient vendorClient) { this.log = log.CreateLogger <AccountDeletionJob>(); this.exceptionFilter = exceptionFilter; this.fhirClient = fhirClient; this.consentStore = consentStore; this.vendorClient = vendorClient; }
public ObservationsEndpoint( ILoggerFactory log, IExceptionFilter exceptionFilter, IAuthentication auth, IConsentStore consentStore, IFhirClient fhirClient) { this.log = log.CreateLogger <ObservationsEndpoint>(); this.exceptionFilter = exceptionFilter; this.auth = auth; this.consentStore = consentStore; this.fhirClient = fhirClient; }
public UserEndpoint( ILoggerFactory log, IExceptionFilter exceptionFilter, IAuthentication auth, IConsentStore consentStore, IVendorClient vendorClient, IFhirClient fhirClient, IUserFactory userFactory, IGuidFactory guidFactory) { this.log = log.CreateLogger <UserEndpoint>(); this.exceptionFilter = exceptionFilter; this.auth = auth; this.consentStore = consentStore; this.vendorClient = vendorClient; this.fhirClient = fhirClient; this.userFactory = userFactory; this.guidFactory = guidFactory; }
public ConsentStoreTests(PersistenceTestFixture data) : base(data) { _store = Factory.Resolve <IConsentStore>(); _subjectAConsents = new List <Consent>(); _subjectBConsents = new List <Consent>(); _subjectCConsents = new List <Consent>(); List <Task> tasks = new List <Task>(); foreach (var subject in new [] { new { Subject = SubjectA, Consents = (List <Consent>)_subjectAConsents }, new { Subject = SubjectB, Consents = (List <Consent>)_subjectBConsents }, new { Subject = SubjectC, Consents = (List <Consent>)_subjectCConsents } }) { for (int i = 0; i < 10; i++) { var consent = new Consent() { ClientId = "ClientId" + i, Scopes = new[] { "scope1", "scope2" }, Subject = subject.Subject }; subject.Consents.Add(consent); tasks.Add(_store.UpdateAsync(consent)); } } _setup = Task.WhenAll(tasks); }
public Jobs( ILoggerFactory log, IExceptionFilter exceptionFilter, IFhirClient fhirClient, IJson json, IWithingsClient withingsClient, IConsentStore consentStore, INotification notification, IGuidFactory guidFactory, IWithingsToFhirConverter converter) { this.log = log.CreateLogger <Jobs>(); this.exceptionFilter = exceptionFilter; this.fhirClient = fhirClient; this.json = json; this.withingsClient = withingsClient; this.consentStore = consentStore; this.notification = notification; this.guidFactory = guidFactory; this.converter = converter; }
public Apis( ILoggerFactory log, IExceptionFilter exceptionFilter, IAuthentication auth, IConsentStore consentStore, IQueue queue, IUserFactory userFactory, IVendorClient vendorClient, IWithingsClient withingsClient, IWithingsToFhirConverter withingsToFhirConverter) { this.log = log.CreateLogger <Apis>(); this.queue = queue; this.userFactory = userFactory; this.vendorClient = vendorClient; this.withingsClient = withingsClient; this.withingsToFhirConverter = withingsToFhirConverter; this.exceptionFilter = exceptionFilter; this.auth = auth; this.consentStore = consentStore; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConsentService"/> class. /// </summary> /// <param name="store">The consent store.</param> /// <exception cref="System.ArgumentNullException">store</exception> public DefaultConsentService(IConsentStore store) { if (store == null) throw new ArgumentNullException("store"); this._store = store; }