Exemplo n.º 1
0
		protected override void OnPreInit(EventArgs e)
		{
			base.OnPreInit(e);
			Security = Engine.SecurityManager;
			Definitions = Engine.Definitions;
			Versions = Engine.Resolve<IVersionManager>();
			Commands = Engine.Resolve<CommandDispatcher>();
			EditManager = Engine.EditManager;
			ManagementPaths = Engine.ManagementPaths;
		}
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 protected override void OnPreInit(EventArgs e)
 {
     base.OnPreInit(e);
     Security = Engine.SecurityManager;
     Definitions = Engine.Definitions;
     Templates = Engine.Resolve<IContentTemplateRepository>();
     Versions = Engine.Resolve<IVersionManager>();
     Commands = Engine.Resolve<CommandDispatcher>();
     Edits = Engine.EditManager;
 }