public void pass_the_environment_flag()
        {
            var registry = new JasperRegistry();

            registry.Handlers.DisableConventionalDiscovery();
            registry.HttpRoutes.DisableConventionalDiscovery();

            var input = new JasperInput
            {
                WebHostBuilder  = JasperHost.CreateDefaultBuilder().UseJasper(registry),
                EnvironmentFlag = "Fake"
            };

            using (var runtime = input.BuildHost(StartMode.Lightweight))
            {
                runtime.Get <IHostingEnvironment>()
                .EnvironmentName.ShouldBe("Fake");
            }
        }
        public void set_up_verbose_logging()
        {
            var registry = new JasperRegistry();

            registry.Handlers.DisableConventionalDiscovery();
            registry.HttpRoutes.DisableConventionalDiscovery();

            var input = new JasperInput
            {
                WebHostBuilder = JasperHost.CreateDefaultBuilder().UseJasper(registry),
                VerboseFlag    = true
            };

            using (var runtime = input.BuildHost(StartMode.Lightweight))
            {
                var providers = runtime.Container.GetAllInstances <ILoggerProvider>();
                providers.OfType <ConsoleLoggerProvider>().Any().ShouldBeTrue();
                providers.OfType <DebugLoggerProvider>().Any().ShouldBeTrue();
            }
        }