public void foo()
 {
     var config = new NHibernateSessionConfig("Chatsworth.Core", "Data Source=chatsworthdb.s3db;Version=3");
     var manager = new NHibernateSessionManager(config);
     var chatsRepos = new ChatMemberRespository(manager);
     var foo = chatsRepos.GetAll();
     Assert.IsNotNull(foo);
 }
 private NHibernateSessionManager CreateSessionManager()
 {
     var sessionConfig = new NHibernateSessionConfig
                             {
                                 ConnectionString =
                                     ConfigurationManager.ConnectionStrings["default"].ConnectionString,
                                 MappingAssembly = Settings.Default.MappingAssembly
                             };
     return new NHibernateSessionManager(sessionConfig);
 }
 public NHibernateSessionManager(NHibernateSessionConfig config)
 {
     _sessionFactory = GetSessionFactory(config.ConnectionString, config.MappingAssembly);
 }