Пример #1
0
        public void Feature_STAGEIsEnabled_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.STAGE, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }
Пример #2
0
        public void Feature_DEVIsEnabledWrongApp_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.DEV, _differentApp);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }
Пример #3
0
        public void Feature_LOCALIsEnabledDifferentApp_ReturnsTrue()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.LOCAL, _differentApp);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsTrue(feature.IsEnabled());
        }
Пример #4
0
        public void Feature_LocalIsEnabled_ReturnsTrue()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.LOCAL, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsTrue(feature.IsEnabled());
        }
Пример #5
0
        public void Feature_PRODDesktopPlatformIsEnabled_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.PROD, PlatformEnum.Desktop, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }
Пример #6
0
        public void Feature_DEVWinPhonePlatformIsEnabled_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.LOCAL, PlatformEnum.WinPhone, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }