-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
Hi Max,
I am wondering what the preferred method is for extending this framework to support Features that are enabled after some DateTime:
For example:
Configure the DateTime when the feature should start.
Features
.Are
.ConfiguredBy
.Custom(featureName => new DateTime(2017, 1, 1));
Check the feature is enabled.
Feature<Sample>.Is().EnabledOn(new DateTime(2017, 1, 2)) // Returns true
Feature<Sample>.Is().EnabledNow() // Returns false when DateTime.Now is before 2017