public void TestTearDown()
        {
            _joinConfiguration = null;

            _session.Close();

            _sqlLiteBuilder.Dispose();
        }
 public void TestFixtureSetUp()
 {
     _joinConfiguration = new JoinConfiguration
     {
         ExpressionBuilder = new ExpressionBuilder(new MockCriteriaTypeRegistry()),
         QueryableProvider = new LinqToObjectsQueryableProvider()
     };
 }
        public void TestSetUp()
        {
            _sqlLiteBuilder = new SqlLiteBuilder();
            _session = _sqlLiteBuilder.GetSession();

            InsertTestData();

            _session.Flush();

            _session.Clear();

            _joinConfiguration = new JoinConfiguration
            {
                ExpressionBuilder = new ExpressionBuilder(new TreeModelCriteriaTypeRegistry()),
                QueryableProvider = new NHibernateQueryableProvider(_session),
                JoinPathRegistry = new EmptyJoinPathRegistry()
            };
        }