public QueueService( IConfigurationProvider configurationProvider, IFluentQueueApi queueProvider) { _configurationProvider = configurationProvider; _queueProvider = queueProvider; }
public QueueService( ILog logger, IConfigurationProvider configurationProvider, IFluentQueueApi queueApi) { _logger = logger; _configurationProvider = configurationProvider; _queueApi = queueApi; _subscriptionId = $"{_configurationProvider.SubscriptionId}-{_configurationProvider.VmName}"; }
public void SetUpTests() { _publisherServiceMock = new Mock <IPublisherService>(); _subscriptionServiceMock = new Mock <ISubscriptionService>(); _topicServiceMock = new Mock <ITopicService>(); _subscriberServiceMock = new Mock <ISubscriberService>(); _deadLetterServiceMock = new Mock <IDeadLetterService>(); _backOffMock = new Mock <IExponentialBackOffService>(); _sut = new FluentQueueApi( _publisherServiceMock.Object, _subscriptionServiceMock.Object, _topicServiceMock.Object, _subscriberServiceMock.Object, _deadLetterServiceMock.Object, _backOffMock.Object); }