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>();
        }
Exemplo n.º 2
0
 public ExtraConfigurationProviderConfiguratorTransformation(IGremlinqConfigurationSection gremlinqSection, IProviderConfigurationSection providerSection, Func <TConfigurator, IGremlinqConfigurationSection, IProviderConfigurationSection, TConfigurator> extraConfiguration)
 {
     _gremlinqSection    = gremlinqSection;
     _providerSection    = providerSection;
     _extraConfiguration = extraConfiguration;
 }
Exemplo n.º 3
0
 public MergedProviderConfigurationSection(IProviderConfigurationSection providerSection, IGremlinqConfigurationSection gremlinqSection)
 {
     _providerSection = providerSection;
     _gremlinqSection = gremlinqSection;
 }