Inheritance: IEditUrlManager
コード例 #1
0
		public override void SetUp()
		{
			base.SetUp();
			editUrlManager = new EditUrlManager(new EditSection());
			root = CreateOneItem<ComplexContainersItem>(0, "root", null);
			item = CreateOneItem<ComplexContainersItem>(0, "item", root);
			version = new ComplexContainersItem { Name = "version", Title = "version", VersionOf = item, VersionIndex = 2 };
			version.SetVersionKey("VERSKEY");
		}
コード例 #2
0
 public override void SetUp()
 {
     base.SetUp();
     var changer = new StateChanger();
     definitions = TestSupport.SetupDefinitions(typeof(StatefulPage), typeof(StatefulPart));
     versions = new FakeVersionManager(repository, changer, typeof(StatefulPage), typeof(StatefulPart));
     var editManager = new EditUrlManager(null, new EditSection());
     var security = new SecurityManager(new FakeWebContextWrapper(), new EditSection());
     commands = new CommandFactory(persister, security, versions, editManager, null, changer);
     dispatcher = new CommandDispatcher(commands, persister);
     item = CreateOneItem<StatefulPage>(1, "first", null);
     child = CreateOneItem<StatefulPage>(2, "child", item);
 }
コード例 #3
0
ファイル: EditUrlManagerTests.cs プロジェクト: Jobu/n2cms
 public override void SetUp()
 {
     base.SetUp();
     editUrlManager = new EditUrlManager(new EditSection());
 }
コード例 #4
0
 public virtual void SetUp()
 {
     editUrlManager = new EditUrlManager(new EditSection());
 }