public async Task GetSettingsAsync_NotConnected_returns_EmptySettings() { ServiceLocator.EnsureServiceProvider(); _tableClientService.IsConnected.Returns(false); var processorsCount = ServiceLocator.GetServices <ICommandProcessor>().Count(); var result = await _storageService.GetSettingsAsync(); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(MentorBotSettings)); Assert.AreEqual(nameof(MentorBotSettings), result.Key); Assert.AreEqual(processorsCount, result.Processors.Count); }