Inheritance: ContentItem, IRootPage, ISystemNode
Example #1
0
        public override void SetUp()
        {
            base.SetUp();

            schemaCreator.Execute(/*script*/false, /*export*/true, /*justDrop*/false, sessionProvider.OpenSession.Connection, null);

			var root = new N2.Management.Myself.RootBase();
			persister.Save(root);
			bridge = new ItemBridge(activator, persister, new SecurityManager(new FakeWebContextWrapper(), new EditSection()), new Host(new FakeWebContextWrapper(), new HostSection { RootID = root.ID }), new EditSection { Membership = new MembershipElement { UserType = typeof(UserOverride).AssemblyQualifiedName } });
		}
Example #2
0
        public override void SetUp()
        {
            base.SetUp();

            schemaCreator.Execute(/*script*/ false, /*export*/ true, /*justDrop*/ false, sessionProvider.OpenSession.Connection, null);

            var root = new N2.Management.Myself.RootBase();

            persister.Save(root);
            bridge = new ItemBridge(activator, finder, persister, new SecurityManager(new FakeWebContextWrapper(), new EditSection()), new Host(new FakeWebContextWrapper(), new HostSection {
                RootID = root.ID
            }), new EditSection {
                Membership = new MembershipElement {
                    UserType = typeof(UserOverride).AssemblyQualifiedName
                }
            });
        }