public TenantReaderTests() { _configurationReaderMock = new Mock <IConfigurationReader>(); ConfigureDocumentDbSettings(); Instance = new TenantReader(_configurationReaderMock.Object); }
private void InitializeAllConsumerConnections() { var consumers = TenantReader.ReadAllConsumers(); _logger.LogInformation($"Initializing Consumer Services..."); foreach (var consumer in consumers) { InitializeConsumerConnection(consumer.Tenant, consumer.Product, consumer.Component, consumer.Topic, consumer.Name); } _logger.LogInformation($"Consumer Services are initialized"); }