public GremlinqConfigurationSectionTests() : base() { var serviceCollection = new ServiceCollection() .AddSingleton <IConfiguration>(new ConfigurationBuilder() .AddInMemoryCollection(new Dictionary <string, string?> { { "Gremlinq:Gremlinq_key_1", "value1" }, { "Gremlinq:Gremlinq_key_2", "value2" } }) .Build()) .AddGremlinq(s => { }) .BuildServiceProvider(); _section = serviceCollection .GetRequiredService <IGremlinqConfigurationSection>(); }
public ExtraConfigurationProviderConfiguratorTransformation(IGremlinqConfigurationSection gremlinqSection, IProviderConfigurationSection providerSection, Func <TConfigurator, IGremlinqConfigurationSection, IProviderConfigurationSection, TConfigurator> extraConfiguration) { _gremlinqSection = gremlinqSection; _providerSection = providerSection; _extraConfiguration = extraConfiguration; }
public MergedProviderConfigurationSection(IProviderConfigurationSection providerSection, IGremlinqConfigurationSection gremlinqSection) { _providerSection = providerSection; _gremlinqSection = gremlinqSection; }