Exemple #1
0
        public module_tests_base()
        {
            AppDomainAssemblyTypeScanner.LoadAssemblies("*.dll");

            _bootstrapper = new ConfigurableBootstrapper(config => config.ViewFactory <TestingViewFactory>());
            _browser      = new Browser(_bootstrapper);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            AppDomainAssemblyTypeScanner.LoadAssemblies(new RelativePathProvider().GetRootPath(), "*.dll");

            var options = new StartOptions
            {
                ServerFactory = "Nowin",
                Port          = 8080,
            };

            using (WebApp.Start <HigginsStartupSelfHost>(options))
            {
                Console.WriteLine("Running a http server on port 8080");
                Console.ReadKey();
            }
        }
        static TestBootstrapper()
        {
            var assemblyPath = Extension.ResolvePath(TestRootPathProvider.RootPath, "bin");

            AppDomainAssemblyTypeScanner.LoadAssemblies(assemblyPath, "Nancy.ViewEngines.React.*dll");
        }