public void FeatureflowManualTestWithFeatureDefaults()
        {
            /*FeatureflowConfig config = FeatureflowConfig.Create();
             * config.BaseUri = "http://app.featureflow.localdev";*/
            Console.WriteLine("Starting out");

            var client = new FeatureflowClient("srv-env-b4b1bdac23ac47558165851a96899019", new List <Feature>
            {
                new Feature
                {
                    Key             = "unknown",
                    FailoverVariant = "unavailable"
                },
                new Feature
                {
                    Key             = "new-one",
                    FailoverVariant = "green"
                },
                new Feature
                {
                    Key             = "example-feature",
                    FailoverVariant = "off"
                }
            }, new FeatureflowConfig());

            Console.WriteLine("We are here");
            var user = new User("1234");

            user.WithAttribute("region", "sydney");
            user.WithAttribute("days", new List <object> {
                11l, 1l, 4l, 29l
            });
            user.WithSessionAttribute("dayofweek", 11l);

            var result = client.Evaluate("example-feature", user).Value();

            if (client.Evaluate("example-feature", user).IsOn())
            {
                //do something
            }
            else
            {
                //do not do something
            }
            var result2 = client.Evaluate("unknown", user).Value();

            Console.WriteLine(result);
            Console.WriteLine(result2);

            Assert.Equal("off", result);
            Assert.Equal("unavailable", result2);
        }
        public IActionResult GetAll()
        {
            if (_featureflowClient.Evaluate("new-one").IsOn())
            {
                return(new ObjectResult(_context.TodoItems.ToList()));
            }

            return(BadRequest("Not Available currently"));
        }
        //[Fact]
        public void FeatureflowManualTest()
        {
            /*FeatureflowConfig config = FeatureflowConfig.Create();
             * config.BaseUri = "http://app.featureflow.localdev";*/
            Console.WriteLine("Starting out");
            var client = new FeatureflowClient("srv-env-b4b1bdac23ac47558165851a96899019");             //

            Console.WriteLine("We are here");
            User user = new User("1234");

            user.Attributes.Add("age", new List <object> {
                11l
            });

            var result = client.Evaluate("example-feature", user).Value();

            Console.WriteLine(result);
        }