Esempio n. 1
0
        public void Start_WhenNotConnectedToCacheService_LogError()
        {
            _mockMultiplexer.Setup(m => m.IsConnected)
            .Returns(false);

            _campaignCacheService.Start();

            _campaignClientMock
            .Verify(c => c.Campaigns.GetAsync(It.IsAny <CampaignsPaginationRequestModel>()), Times.Never);
        }
Esempio n. 2
0
        public Task StartAsync()
        {
            foreach (var startable in _startables)
            {
                startable.Start();
            }

            _campaignCacheService.Start();

            return(Task.CompletedTask);
        }