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