Beispiel #1
0
        public async Task not_be_case_sensitive()
        {
            var activator = new LocationActivatorBuilder()
                            .WithRuntimeParameters(new Dictionary <string, object>()
            {
                { "locations", "sPaIn;FRANCE" }
            })
                            .WithCurrentActualLocation("SPAIN")
                            .Build();

            (await activator.IsActiveAsync("featureName")).Should().Be(true);
        }
Beispiel #2
0
        public async Task indicates_whether_activator_is_not_active()
        {
            var activator = new LocationActivatorBuilder()
                            .WithRuntimeParameters(new Dictionary <string, object>()
            {
                { "locations", "PORTUGAL;FRANCE" }
            })
                            .WithCurrentActualLocation("SPAIN")
                            .Build();

            (await activator.IsActiveAsync("featureName")).Should().Be(false);
        }