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); }
public Task StartAsync() { foreach (var startable in _startables) { startable.Start(); } _campaignCacheService.Start(); return(Task.CompletedTask); }