public void OnAssemblyStart()
        {
            var applicationPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;

            Database.Initialize(applicationPath);
            EPiServerInitializer.Initialize(applicationPath);
            DataContext.Current = new DataContext(ConfigurationManager.ConnectionStrings["EcfSqlConnection"].ConnectionString);
            // Auto install the meta model
            var thisCallIsOnlyUsedToMakeSureTheMetaDataModuleIsAutomaticallyInstalled = AssetContext.Current;

            // We need to make sure the OrderContext.Current has been executed before doing a snapshot.
            var thisCallIsOnlyUsedToMakeSureTheOrderContextIsAutomaticallyInstalled = OrderContext.Current;

            CatalogTestHelper.Initialize();
            Database.CreateBackups(applicationPath);
        }
        public static void OnAssemblyStart(TestContext testContext)
        {
            var applicationPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            Database.Initialize(applicationPath);
            EPiServerInitializer.Initialize(applicationPath);
            DataContext.Current = new DataContext(ConfigurationManager.ConnectionStrings["EcfSqlConnection"].ConnectionString);
            // Auto install the meta model
            //var thisCallIsOnlyUsedToMakeSureTheMetaDataModuleIsAutomaticallyInstalled = AssetContext.Current;

            // We need to make sure the OrderContext.Current has been executed before doing a snapshot.
            //var thisCallIsOnlyUsedToMakeSureTheOrderContextIsAutomaticallyInstalled = OrderContext.Current;

            CatalogTestHelper catalogTestHelper = new CatalogTestHelper();
            catalogTestHelper.Initialize();

            Database.CreateBackups(applicationPath);
        }
 public void Test2()
 {
     CatalogTestHelper catalogTestHelper = new CatalogTestHelper();
     //var parentLink = ReferenceConverter.GetContentLink(catalogTestHelper.DefaultCatalogNodeId, CatalogContentType.CatalogNode, 0);
     //var variation = ContentRepository.GetDefault<VariationContent>(parentLink);
 }