예제 #1
0
 public void AfterContextCleanup()
 {
     Isolate.CleanUp();
     ReflectionHelper.Reset();
     XafTypesInfo.Reset();
     XafTypesInfo.HardReset();
     XpoTypesInfoHelper.GetXpoTypeInfoSource().ResetDictionary();
 }
예제 #2
0
        public virtual void Setup()
        {
            DictionaryNode.ReaderWriterLockWrapperCreator = new ReaderWriterLockWrapper();
            elDictionary      = new Dictionary(new DictionaryXmlReader().ReadFromString(elClassXml), Schema.GetCommonSchema());
            DefaultDictionary = new Dictionary(new DictionaryXmlReader().ReadFromString(DefaultClassXml),
                                               Schema.GetCommonSchema());
            PersistentAppDictionary = new Dictionary(new DictionaryXmlReader().ReadFromString(PersistentAppClassXml),
                                                     Schema.GetCommonSchema());
            DefaultDictionary2 = new Dictionary(new DictionaryXmlReader().ReadFromString(DefaultClassXml2),
                                                Schema.GetCommonSchema());
            Session.DefaultSession.Disconnect();

//            dataSet = new DataSet();
            XafTypesInfo.Reset(true);

            var dataStore = new InMemoryDataStore(AutoCreateOption.DatabaseAndSchema);

            dataLayer            = new SimpleDataLayer(XafTypesInfo.XpoTypeInfoSource.XPDictionary, dataStore);
            XpoDefault.DataLayer = dataLayer;


//            Isolate.Fake.ISecurityComplex();
        }
예제 #3
0
 public void Setup()
 {
     XafTypesInfo.Reset();
 }