public void FeatureWithNoDate_Test()
        {
            FeaturesService fs = new FeaturesService("features.json");

            fs._features = new System.Collections.Generic.List <Feature>();
            fs._features.Add(new Feature
            {
                Name      = "featurewithnodate",
                StartDate = null,
                EndDate   = null,
            });

            var result = fs.IsEnabled("featurewithnodate");

            Assert.True(result);
        }
        public void FeatureWithStartEndDate_Test()
        {
            FeaturesService fs = new FeaturesService("features.json");

            fs._features = new System.Collections.Generic.List <Feature>();
            fs._features.Add(new Feature
            {
                Name      = "featurewithstartenddate",
                StartDate = DateTime.Now.Add(new TimeSpan(-2, 0, 0, 0)),
                EndDate   = DateTime.Now.Add(new TimeSpan(1, 0, 0, 0)),
            });

            var result = fs.IsEnabled("featurewithstartenddate");

            Assert.True(result);
        }