public void Exit()
 {
     ObjectFactory.ClearMaps();
     Broker.ClearPersistenceBroker();
     // restore original analyzer value
     GentleSettings.AnalyzerLevel = origLevel;
 }
 public void Init()
 {
     ObjectFactory.ClearMaps();
     Broker.ClearPersistenceBroker();
     // make sure analyzer errors are ignored for this test
     origLevel = GentleSettings.AnalyzerLevel;
     GentleSettings.AnalyzerLevel = AnalyzerLevel.None;
 }
Пример #3
0
        public virtual void Init(string providerName)
        {
            ObjectFactory.ClearMaps();
            Broker.ClearPersistenceBroker();
            ObjectFactory.ClearMaps();
            IGentleProvider provider = ProviderFactory.GetProvider(providerName, "");

            Assert.AreEqual(provider.Name, providerName, "Wrong provider returned from factory!");
            sf     = provider.GetSqlFactory();
            broker = new PersistenceBroker(provider);
            sb     = new SqlBuilder(provider);
            // make sure analyzer errors are ignored for this test
            origLevel = GentleSettings.AnalyzerLevel;
            GentleSettings.AnalyzerLevel = AnalyzerLevel.None;
        }