public virtual void TestFixtureSetUp()
		{
			engine = CreateEngine();
			
			var configurationBuilder = engine.Resolve<IConfigurationBuilder>();
			sessionProvider = (FakeSessionProvider)engine.Resolve<ISessionProvider>();
			schemaCreator = new SchemaExport(configurationBuilder.BuildConfiguration());
			CreateDatabaseSchema();

			engine.Initialize();
		}
		public virtual void TestFixtureSetUp()
		{
			Context.Replace(Engine = new ContentEngine());

			var configurationBuilder = Engine.Resolve<IConfigurationBuilder>();
			SessionProvider = (FakeSessionProvider)Engine.Resolve<ISessionProvider>();
			SchemaCreator = new SchemaExport(configurationBuilder.BuildConfiguration());
			CreateDatabaseSchema();

			Engine.Initialize();
		}
Beispiel #3
0
		public override void SetUp()
		{
			base.SetUp();
			sessionProvider = helper.SessionProvider;

			CreateRootItem();
			SaveVersionAndUpdateRootItem();
			CreateStartPageBelow(rootItem);
			item1 = CreatePageBelow(startPage, 1);
			item2 = CreatePageBelow(startPage, 2);
			item3 = CreatePageBelow(startPage, 3);

			engine.Resolve<IHost>().DefaultSite.RootItemID = rootItem.ID;
			engine.Resolve<IHost>().DefaultSite.StartPageID = startPage.ID;

			finder = new ItemFinder(sessionProvider, new DefinitionMap());

			sessionProvider.OpenSession.Session.Clear();
		}