public void SearchByName_EmptyName_ReturnEmptyList()
        {
            var configurationReader = new ConfigurationEngine(_dataRepository, _mockCacheRepository, ApplicationName, 1);

            var result = configurationReader.SearchByName(string.Empty);

            Assert.AreEqual(0, result.Count);
        }
        public void SearchByName_ExistingName_ReturnNotEmptyList()
        {
            var configurationReader = new ConfigurationEngine(_dataRepository, _mockCacheRepository, ApplicationName, 1);

            _dataRepository.Search(Arg.Any <string>(), Arg.Any <string>()).Returns(new List <ConfigurationDTO>
            {
                new ConfigurationDTO()
            });

            var result = configurationReader.SearchByName("name");

            Assert.Greater(result.Count, 0);
        }