Пример #1
0
        public bool IsEnabled()
        {
            var connectionString = ReadConnectionString();
            var dbToggleReader   = new DbToggleReader(connectionString);

            return(dbToggleReader.IsToggleEnabled(GetType().Name + ".IsEnabled"));
        }
Пример #2
0
 public void SetUp()
 {
     var dbReader = Substitute.For<IDbReader>();
     dbReader.Read(TrueToggle).Returns(true);
     dbReader.Read(FalseToggle).Returns(false);
     _dbToggleReader = new DbToggleReader(dbReader);
 }