private FeatureFlag BuildFlag()
        {
            var clause  = new ClauseBuilder().Attribute("name").Op("in").Values(new JValue("x")).Negate(true).Build();
            var wv      = new WeightedVariation(0, 50);
            var rollout = new Rollout(new List <WeightedVariation> {
                wv
            }, "key");
            var rule = new RuleBuilder().Id("ruleid").Variation(0).Rollout(rollout).Clauses(clause)
                       .TrackEvents(true).Build();
            var target = new Target(new List <string> {
                "userkey"
            }, 0);

            return(new FeatureFlagBuilder("flagkey")
                   .DebugEventsUntilDate(100000)
                   .Deleted(true)
                   .Fallthrough(new VariationOrRollout(0, rollout))
                   .OffVariation(0)
                   .On(true)
                   .Prerequisites(new Prerequisite("prereq", 1))
                   .Rules(rule)
                   .Salt("NaCl")
                   .Targets(target)
                   .TrackEvents(true)
                   .TrackEventsFallthrough(true)
                   .Variations(new JValue("value"))
                   .Version(100)
                   .Build());
        }
        private FeatureFlag BuildFlag()
        {
            var clause = new Clause("name", "in", new List <JValue> {
                new JValue("x")
            }, true);
            var wv      = new WeightedVariation(0, 50);
            var rollout = new Rollout(new List <WeightedVariation> {
                wv
            }, "key");
            var rule = new Rule("ruleid", 0, rollout, new List <Clause> {
                clause
            });
            var target = new Target(new List <string> {
                "userkey"
            }, 0);

            return(new FeatureFlagBuilder("flagkey")
                   .DebugEventsUntilDate(100000)
                   .Deleted(true)
                   .Fallthrough(new VariationOrRollout(0, rollout))
                   .OffVariation(0)
                   .On(true)
                   .Prerequisites(new List <Prerequisite> {
                new Prerequisite("prereq", 1)
            })
                   .Rules(new List <Rule> {
                rule
            })
                   .Salt("NaCl")
                   .Targets(new List <Target> {
                target
            })
                   .TrackEvents(true)
                   .Variations(new List <JToken> {
                new JValue("value")
            })
                   .Version(100)
                   .Build());
        }