public void GetById_EmptyId_ReturnNull() { var configurationReader = new ConfigurationEngine(_dataRepository, _mockCacheRepository, ApplicationName, 1); var result = configurationReader.GetById(string.Empty); Assert.Null(result); }
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); }