Exemplo n.º 1
0
 public void Setup_Mocks()
 {
     logger               = Mock.Of <ILogger <DefaultEventProcessingService> >();
     metadataStore        = Mock.Of <IMetadataStore>();
     subscriberQueueStore = Mock.Of <ISubscriberQueueStore>();
     subscriberStore      = Mock.Of <ISubscriberStore>();
 }
Exemplo n.º 2
0
 public void Setup_Mocks()
 {
     subscriberQueueStore = Mock.Of <ISubscriberQueueStore>();
     subscriberStore      = Mock.Of <ISubscriberStore>();
     serviceProvider      = Mock.Of <IServiceProvider>();
     logger          = Mock.Of <ILogger <HostedDeliveryService> >();
     options         = Options.Create(new EventServerOptions());
     deliveryService = Mock.Of <IDeliveryService>();
     SetupScopeMock();
 }
 public DefaultEventProcessingService(
     ILogger <DefaultEventProcessingService> logger,
     IMetadataStore metadataStore,
     ISubscriberStore subscriberStore,
     ISubscriberQueueStore subscriberQueueStore)
 {
     this.logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     this.metadataStore        = metadataStore ?? throw new ArgumentNullException(nameof(metadataStore));
     this.subscriberStore      = subscriberStore ?? throw new ArgumentNullException(nameof(subscriberStore));
     this.subscriberQueueStore = subscriberQueueStore ?? throw new ArgumentNullException(nameof(subscriberQueueStore));
 }
 public DefaultObjectUpdateService(
     ILogger <DefaultObjectUpdateService> logger,
     IMetadataStore metadataStore,
     IObjectStore objectStore,
     ISubscriberStore subscriberStore,
     ISubscriberQueueStore subscriberQueueStore)
 {
     this.logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     this.metadataStore        = metadataStore ?? throw new ArgumentNullException(nameof(metadataStore));
     this.objectStore          = objectStore ?? throw new ArgumentNullException(nameof(objectStore));
     this.subscriberStore      = subscriberStore ?? throw new ArgumentNullException(nameof(subscriberStore));
     this.subscriberQueueStore = subscriberQueueStore ?? throw new ArgumentNullException(nameof(subscriberQueueStore));
 }