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();
        }
Exemple #2
0
 public static ITogglerBuilder DependentFeatureToggler(
     this ITogglerBuilder togglerBuilder)
 {
     return(togglerBuilder.AddToggler(new DependentFeatureToggler()));
 }
Exemple #3
0
 public static ITogglerBuilder DefaultValueToggler(
     this ITogglerBuilder togglerBuilder)
 {
     return(togglerBuilder.AddToggler(new DefaultValueToggler()));
 }
Exemple #4
0
 public static ITogglerBuilder AppSettingsToggler(
     this ITogglerBuilder togglerBuilder)
 {
     return(togglerBuilder.AddToggler(new AppSettingsToggler()));
 }