public void use_descriptor_with_activator_name_equals_to_activator_type_name()
        {
            var activator = new RolloutHeaderValueActivatorBuilder()
                            .WithRuntimeParameters(new Dictionary <string, object>()
            {
                { "header-name", "existing_header" },
                { "percentage", 0d },
            })
                            .WithHeaderValue("existing_header", "some_value")
                            .Build();

            var typeName = typeof(RolloutHeaderValueActivator).Name;

            activator.Descriptors
            .ToList()
            .ForEach(d => d.ActivatorName.Should().BeEquivalentTo(typeName));
        }
        public async Task indicates_whether_activator_is_not_active_if_percentage_is_zero()
        {
            var activator = new RolloutHeaderValueActivatorBuilder()
                            .WithRuntimeParameters(new Dictionary <string, object>()
            {
                { "header-name", "existing_header" },
                { "percentage", 0d },
            })
                            .WithHeaderValue("existing_header", "some_value")
                            .Build();

            int index = 0;

            while (index < 100)
            {
                (await activator.IsActiveAsync("feature")).Should().Be(false);

                ++index;
            }
        }