Esempio n. 1
0
        public void ShouldGetEagerlyWithMultipleNestingLevels()
        {
            // arrange
            RepositoryQuery<QueryTest> query = new RepositoryQuery<QueryTest>(m_session.Object);

            // act
            query.With(x => x.ChildObj.GrandchildObj).Result();

            // assert
            m_criteria.Verify(x => x.SetFetchMode("ChildObj.GrandchildObj", FetchMode.Eager));
            m_criteria.Verify(x => x.UniqueResult<QueryTest>());
        }