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

            _dataRepository.GetConfigurationById(Arg.Any <string>()).Returns(new ConfigurationDTO());

            var result = configurationReader.GetById("id");

            Assert.NotNull(result);
        }
Ejemplo n.º 2
0
 public ConfigurationDTO GetById(string id)
 {
     return(!string.IsNullOrWhiteSpace(id) ? _storageProvider.GetConfigurationById(id) : null);
 }