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(); }
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); }