public void CanIdentifyFeatureStatusWithoutOptionsSpecificUserNegative() { var currentUserId = "afefebe0-9478-4ba0-90eb-35d6ac5b9d4e"; var metadata = new ToggleMetadata { Name = "Featurify.ImportFeature", Value = true, UserId = "afefebe0-9478-4ba0-90eb-35d6ac5b9d4f" }; var result = metadata.IsFeatureEnabled(currentUserId); Assert.AreEqual(false, result); }
public void CanIdentifyFeatureStatusWithOptionsNonExistentUserStrict() { var currentUserId = "afefebe0-9478-4ba0-90eb-35d6ac5b9d4e"; var metadata = new ToggleMetadata { Name = "Featurify.ImportFeature", Value = true, UserId = "afefebe0-9478-4ba0-90eb-35d6ac5b9d4f" }; var options = new FeaturifyOptions { AnyUserVerifier = "?", UseStrict = true }; var result = metadata.IsFeatureEnabled(currentUserId, options); }
public void CanIdentifyFeatureStatusWithOptionsSpecificUserNotStrict() { var currentUserId = "afefebe0-9478-4ba0-90eb-35d6ac5b9d4f"; var metadata = new ToggleMetadata { Name = "Featurify.ImportFeature", Value = true, UserId = "afefebe0-9478-4ba0-90eb-35d6ac5b9d4f" }; var options = new FeaturifyOptions { AnyUserVerifier = "?", UseStrict = false }; var result = metadata.IsFeatureEnabled(currentUserId, options); Assert.AreEqual(true, result); }