Exemple #1
0
        public void load_values_from_well_known_yml_file()
        {
            Configuration.ValueStrategies.Add(LocalDebugging.Strategy());

            var config = Configuration.For <IExampleForLocal>();

            Assert.Equal(42, config.SomeNumber);
        }
        // The bootstrapper enables you to reconfigure the composition of the framework,
        // by overriding the various methods and properties.
        // For more information https://github.com/NancyFx/Nancy/wiki/Bootstrapper

        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            Configuration.ValueStrategies.Add(LocalDebugging.Strategy());

            var config = Configuration.For <IConfiguration>();

            container.Register(config);
        }