public static bool IsAvailable(string featureName) { switchProvider = switchProviderFactory.Create(); switchProvider.ReadConfiguration(); return switchProvider.IsAvailable(featureName); }
public static bool IsAvailable(string featureName) { switchProvider = switchProviderFactory.Create(); switchProvider.ReadConfiguration(); return(switchProvider.IsAvailable(featureName)); }
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); }