public bool IsEnabled() { var connectionString = ReadConnectionString(); var dbToggleReader = new DbToggleReader(connectionString); return(dbToggleReader.IsToggleEnabled(GetType().Name + ".IsEnabled")); }
public void SetUp() { var dbReader = Substitute.For<IDbReader>(); dbReader.Read(TrueToggle).Returns(true); dbReader.Read(FalseToggle).Returns(false); _dbToggleReader = new DbToggleReader(dbReader); }