public void CanCreateStatelessFlowQueryWithOptions()
        {
            Assert.That(() => StatelessSession.FlowQuery <UserEntity>(new FlowQueryOptions()), Throws.Nothing);

            IImmediateFlowQuery <UserEntity> query = StatelessSession.FlowQuery <UserEntity>(new FlowQueryOptions());

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

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

            IImmediateFlowQuery <UserEntity> query = StatelessSession.FlowQuery(() => alias);

            Assert.That(query != null);

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

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