public void GetList_ReturnAllConfigurationList() { var configurationReader = new ConfigurationEngine(_dataRepository, _mockCacheRepository, ApplicationName, 1); _dataRepository.Search(Arg.Any <string>()).Returns(new List <ConfigurationDTO> { new ConfigurationDTO() }); var result = configurationReader.GetAll(); Assert.IsNotEmpty(result); }
public List <ConfigurationDTO> GetAll() { return(_storageProvider.Search(_applicationName)); }