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

			engine.Initialize();
		}
Ejemplo n.º 2
0
		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();
		}
Ejemplo n.º 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();
		}