Skip to content

Features that enable based on a date #12

Description

@DustinKingen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions