public void throw_if_store_service_is_null()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var accessor = new FakeHttpContextAccesor();
         new HeaderValueToggle(null, accessor);
     });
 }
 public void throw_if_logger_is_null()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var store    = new DelegatedValueFeatureStore((_, __) => null);
         var accessor = new FakeHttpContextAccesor();
         new GradualRolloutSessionToggle(store, accessor, null);
     });
 }
        public void throw_if_store_service_is_null()
        {
            Assert.Throws <ArgumentNullException>(() =>
            {
                var accessor    = new FakeHttpContextAccesor();
                var partitioner = new DefaultValuePartitioner();

                new GradualRolloutClaimValueToggle(partitioner, null, accessor);
            });
        }
        public void throw_if_partitioner_service_is_null()
        {
            Assert.Throws <ArgumentNullException>(() =>
            {
                var store    = new DelegatedValueFeatureStore((_, __) => null);
                var accessor = new FakeHttpContextAccesor();

                new GradualRolloutClaimValueToggle(null, store, accessor);
            });
        }
        public void throw_if_store_service_is_null()
        {
            Assert.Throws <ArgumentNullException>(() =>
            {
                var loggerFactory = new LoggerFactory();
                var accessor      = new FakeHttpContextAccesor();

                new GradualRolloutSessionToggle(null, accessor, loggerFactory.CreateLogger <GradualRolloutSessionToggle>());
            });
        }