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);
        }
Пример #2
0
 public List <ConfigurationDTO> GetAll()
 {
     return(_storageProvider.Search(_applicationName));
 }