Beispiel #1
0
        public void if_match_rules_and_enabled_rollout_100_percent_should_return_true()
        {
            var sut = new KFeatureFlag("sut", KTargeting.EnabledForSomeUsers, new string[] { },
                                       new List <KInlineRule>
            {
                new KInlineRule(0, new[] { new KEqualsStatement("country", new[] { KStringValue.Create("spain") }) })
            },
                                       true, KPercentageRollout.Create(100));

            sut.Evaluate(Fixture.store, Fixture.spain_user).Should().BeTrue();
        }
Beispiel #2
0
 public bool Equals(KStringValue other)
 {
     return(Value == other.Value);
 }
Beispiel #3
0
 public bool NotEquals(KStringValue other)
 {
     return(!Equals(other));
 }
Beispiel #4
0
 public bool Contains(KStringValue other)
 {
     return(Value.Contains(other.Value));
 }