protected virtual void SetUpFixture() { string resource = "SqlMap_StatementOnly.config"; string scriptDirectory = Path.Combine(Path.Combine(Path.Combine(Resources.ApplicationBase, ".."), ".."), "Scripts") + Path.DirectorySeparatorChar; try { IConfigurationEngine engine = new DefaultConfigurationEngine(); engine.RegisterInterpreter(new XmlConfigurationInterpreter(resource)); engine.RegisterModule(new AccountModule()); engine.RegisterModule(new DocumentModule()); IMapperFactory mapperFactory = engine.BuildMapperFactory(); Console.WriteLine(engine.ConfigurationStore.ToString()); dataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper; ISessionFactory sessionFactory = engine.ModelStore.SessionFactory; BaseTest.InitScript(sessionFactory.DataSource, scriptDirectory + "account-init.sql"); } catch (Exception ex) { Exception e = ex; while (e != null) { Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); e = e.InnerException; } throw; } }