Beispiel #1
0
        public async Task return_null_feature_if_not_exist()
        {
            var store = new FeatureStoreBuilder()
                        .Build();

            var feature = await store.FindFeatureAsync("non_existing_feature");

            (await store.FindFeatureAsync("non_existing_feature")).Should().BeNull();
        }
Beispiel #2
0
        public async Task find_feature_if_exist()
        {
            var store = new FeatureStoreBuilder()
                        .WithFeatureConfigurer(new FeatureConfigurer(featureName)
                                               .WithActivator <UserActivator>(@params =>
            {
                @params.Add("USER", "uzorrilla");
            })).Build();

            (await store.FindFeatureAsync(featureName)).Name.Should().Be(featureName);
        }