public static bool IsAvailable(string featureName)
        {
            switchProvider = switchProviderFactory.Create();
            switchProvider.ReadConfiguration();

            return switchProvider.IsAvailable(featureName);
        }
Exemple #2
0
        public static bool IsAvailable(string featureName)
        {
            switchProvider = switchProviderFactory.Create();
            switchProvider.ReadConfiguration();

            return(switchProvider.IsAvailable(featureName));
        }
Exemple #3
0
            public void IsAvailable_should_delegate_to_concrete_switch()
            {
                Given_a_switch_factory_with_a_switch_initialised();

                _switcher.IsAvailable("MyFeature").Returns(true);
                var result = Features.IsAvailable("MyFeature");

                _switcher.Received(1).IsAvailable("MyFeature");
                result.ShouldBe(true);
            }