public virtual void TestFixtureSetUp() { definitions = TestSupport.SetupDefinitions(typeof(Definitions.PersistableItem), typeof(Definitions.PersistablePart)); writer = new ItemXmlWriter( definitions, TestSupport.SetupFileSystem()); reader = new ItemXmlReader( definitions, TestSupport.SetupContentActivator()); }
public override void SetUp() { base.SetUp(); var types = new[] { typeof(Items.PageItem), typeof(Items.DataItem) }; versionRepository = TestSupport.CreateVersionRepository(types); var versions = TestSupport.SetupVersionManager(persister, versionRepository); creator = new CreateUrlProvider( persister, new EditUrlManager(null, new EditSection()), definitions = TestSupport.SetupDefinitions(types), TestSupport.SetupContentActivator(), new Navigator(persister, TestSupport.SetupHost(), new VirtualNodeFactory(), TestSupport.SetupContentSource()), versions, versionRepository); request = new NameValueCollection(); root = CreateOneItem<Items.PageItem>(0, "root", null); }
public override void SetUp() { base.SetUp(); var types = new[] { typeof(Items.PageItem), typeof(Items.DataItem) }; versionRepository = TestSupport.CreateVersionRepository(types); var versions = TestSupport.SetupVersionManager(persister, versionRepository); creator = new CreateUrlProvider( persister, new EditUrlManager(null, new EditSection()), definitions = TestSupport.SetupDefinitions(types), TestSupport.SetupContentActivator(), new Navigator(persister, TestSupport.SetupHost(), new VirtualNodeFactory(), TestSupport.SetupContentSource()), versions, versionRepository); request = new NameValueCollection(); root = CreateOneItem <Items.PageItem>(0, "root", null); }