public FeatureToggle AddNewFeatureToggle(string key, string description) { Guard.IsFalse(FeatureToggles.Any(x => x.Key == key), "Duplicated key for this application"); var featureToggle = FeatureToggle.New(key, description, this); FeatureToggles.Add(featureToggle); return(featureToggle); }
public void ConfigureFeatureToggles() { if (FeatureToggles == null || !FeatureToggles.Any()) { return; } foreach (var featureToggle in FeatureToggles) { var checkboxElement = GetWebElementUsingSettingLabel(CHECKBOX_COMPONENT_XPATH, featureToggle.Feature.DisplayName()); SetWebformCheckBoxState(checkboxElement, true); } ClickElement(_btnSave); }