示例#1
0
 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);
		}
示例#3
0
        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);
        }