Beispiel #1
0
 public override void SetUp()
 {
     base.SetUp();
     editUrlManager = new EditUrlManager(null, 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");
 }
 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);
 }
Beispiel #3
0
 public virtual void SetUp()
 {
     editUrlManager = new EditUrlManager(new EditSection());
 }
Beispiel #4
0
 public override void SetUp()
 {
     base.SetUp();
     editUrlManager = new EditUrlManager(new EditSection());
 }