public void GetEntitySet_Returns_NHibernateEntitySet_With_NHibernateQueryable()
        {
            // Arrange
            ISession session = new Mock<ISession>().Object;
            NHibernateDataContext context = new NHibernateDataContext(session);

            // Act
            NHibernateEntitySet<Object> entitySet = context.GetEntitySet<Object>().AssertCast<NHibernateEntitySet<Object>>();

            // Assert
            Assert.IsNotNull(entitySet.Query);
        }
        public void GetEntitySet_Returns_NHibernateEntitySet()
        {
            // Arrange
            ISession session = new Mock<ISession>().Object;
            NHibernateDataContext context = new NHibernateDataContext(session);

            // Act
            IEntitySet<Object> entitySet = context.GetEntitySet<Object>();

            // Assert
            Assert.IsInstanceOfType(entitySet, typeof(NHibernateEntitySet<Object>));
        }
        public void GetEntitySet_Returns_NHibernateEntitySet_With_Session()
        {
            // Arrange
            ISession session = new Mock<ISession>().Object;
            NHibernateDataContext context = new NHibernateDataContext(session);

            // Act
            NHibernateEntitySet<Object> entitySet = context.GetEntitySet<Object>().AssertCast<NHibernateEntitySet<Object>>();

            // Assert
            Assert.AreSame(session, entitySet.Session);
        }