public void AfterContextCleanup() { Isolate.CleanUp(); ReflectionHelper.Reset(); XafTypesInfo.Reset(); XafTypesInfo.HardReset(); XpoTypesInfoHelper.GetXpoTypeInfoSource().ResetDictionary(); }
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(); }
public void Setup() { XafTypesInfo.Reset(); }