Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }