Example #1
0
        public void SetUp()
        {
            var configuration = new Configuration { ObjectFactory = Config.ObjectFactory };
            Config.Default = new Database(configuration);

            Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US");
        }
Example #2
0
        /// <summary>
        /// The init.
        /// </summary>
        /// <param name="populate">
        /// The setup.
        /// </param>
        protected void Setup(bool populate)
        {
            var configuration = new Configuration { ObjectFactory = Config.ObjectFactory };
            Config.Default = new Database(configuration);

            Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("nl-BE");

            var database = Config.Default;
            database.Init();

            this.Session = Config.Default.CreateSession();

            if (populate)
            {
                new Setup(this.Session, null).Apply();
                this.Session.Commit();
            }

            new SecurityCache(this.Session).Invalidate();
        }