Exemple #1
0
 public ContentSectionTable(HostSection web, EngineSection engine, DatabaseSection database, EditSection management)
 {
     Web        = web;
     Engine     = engine;
     Database   = database;
     Management = management;
 }
Exemple #2
0
        public override void SetUp()
        {
            base.SetUp();
            base.parser = parser = TestSupport.Setup(persister, wrapper, host);
            var config = new N2.Configuration.EngineSection();

            injector = new DirectUrlInjector(host, parser, repository, TestSupport.SetupDefinitions(typeof(UrlSourcePage), typeof(DataItem)), config);
            injector.Start();
            CreateDefaultStructure();
            Url.DefaultExtension = "/";
        }
Exemple #3
0
        public override void SetUp()
        {
            base.SetUp();

            CreateDefaultStructure();


            host.ReplaceSites(host.DefaultSite, new Site[] { host.DefaultSite, new Site(1, 2, "n2cms.com"), new Site(1, 4, "libardo.com") });
            var config = new N2.Configuration.EngineSection();

            base.parser = parser = new MultipleSitesParser(persister, wrapper, host, new N2.Plugin.ConnectionMonitor(), new HostSection());
            injector    = new DirectUrlInjector(host, parser, repository, TestSupport.SetupDefinitions(typeof(UrlSourcePage), typeof(DataItem)), config);
            injector.Start();
            Url.DefaultExtension = "/";
        }