public void DependentFeatureTogglerAddsToggler(ITogglerBuilder togglerBuilder) { A.CallTo(() => togglerBuilder.AddToggler(A <IFeatureToggler> ._)) .Returns(togglerBuilder); ITogglerBuilder result = TogglerBuilderExtensions.DependentFeatureToggler(togglerBuilder); Assert.Same(togglerBuilder, result); A.CallTo(() => togglerBuilder.AddToggler(A <DependentFeatureToggler> ._)) .MustHaveHappened(); }
public static ITogglerBuilder DependentFeatureToggler( this ITogglerBuilder togglerBuilder) { return(togglerBuilder.AddToggler(new DependentFeatureToggler())); }
public static ITogglerBuilder DefaultValueToggler( this ITogglerBuilder togglerBuilder) { return(togglerBuilder.AddToggler(new DefaultValueToggler())); }
public static ITogglerBuilder AppSettingsToggler( this ITogglerBuilder togglerBuilder) { return(togglerBuilder.AddToggler(new AppSettingsToggler())); }