public void CanCreateStatelessStreamedFlowQuery()
        {
            Assert.That(() => StatelessSession.StreamedFlowQuery <UserEntity>(), Throws.Nothing);

            IStreamedFlowQuery <UserEntity> query = StatelessSession.StreamedFlowQuery <UserEntity>();

            Assert.That(query != null);
        }
        public void CanCreateStatelessStreamedFlowQueryWithAlias()
        {
            UserEntity alias = null;

            Assert.That(() => StatelessSession.StreamedFlowQuery(() => alias), Throws.Nothing);

            IStreamedFlowQuery <UserEntity> query = StatelessSession.StreamedFlowQuery(() => alias);

            Assert.That(query != null);

            ICriteria criteria = new CriteriaBuilder()
                                 .Build <UserEntity, UserEntity>(QuerySelection.Create(query as IQueryableFlowQuery));

            Assert.That(criteria.Alias, Is.EqualTo("alias"));
        }