public override void SetUp() { base.SetUp(); base.parser = parser = TestSupport.Setup(persister, wrapper, host); injector = new DirectUrlInjector(host, parser, repository, TestSupport.SetupDefinitions(typeof(UrlSourcePage), typeof(DataItem))); injector.Start(); CreateDefaultStructure(); Url.DefaultExtension = "/"; }
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") }); 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))); injector.Start(); Url.DefaultExtension = "/"; }
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 = "/"; Url.ApplicationPath = "/vd/"; }