protected virtual void TestFixtureSetUp() { LogManager.Adapter = new ConsoleOutLoggerFA(new NameValueCollection()); ConfigurationEngine = new DefaultConfigurationEngine(); ConfigurationEngine.RegisterInterpreter(new XmlConfigurationInterpreter("SqlMap.config")); IMapperFactory mapperFactory = ConfigurationEngine.BuildMapperFactory(); SessionFactory = ConfigurationEngine.ModelStore.SessionFactory; DataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper; }
protected virtual void TestFixtureSetUp() { LogManager.Adapter = new ConsoleOutLoggerFA(new NameValueCollection()); configurationSetting = new ConfigurationSetting(); configurationSetting.Properties.Add("collection2Namespace", "MyBatis.DataMapper.Sqlite.Test.Domain.LineItemCollection2, MyBatis.DataMapper.Sqlite.Test"); configurationSetting.Properties.Add("nullableInt", "int?"); ConfigurationEngine = new DefaultConfigurationEngine(configurationSetting); ConfigurationEngine.RegisterInterpreter(new XmlConfigurationInterpreter("SqlMap.config")); ConfigurationEngine.RegisterModule(new AliasModule()); IMapperFactory mapperFactory = ConfigurationEngine.BuildMapperFactory(); sessionFactory = ConfigurationEngine.ModelStore.SessionFactory; dataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper; }