public void SimpleTransaction_RetrieveAndSerializeAnonymousResult()
            {
                ISession session;
                IDriver  driver;

                Neo4j.Driver.V1.ITransaction transaction;
                IGraphClient graphClient;

                GetAndConnectGraphClient(out graphClient, out driver, out session, out transaction);

                ITransactionalGraphClient txGc = (ITransactionalGraphClient)graphClient;

                using (var tx = txGc.BeginTransaction())
                {
                    var node = txGc.Cypher.Match("(n:Node)").Return(n => new { Node = n.As <MockNode>() }).Results.SingleOrDefault();

                    node.Node.Name.Should().Be("Value");

                    tx.Commit();
                }

                driver.Received(1).Session();
                session.Received(1).BeginTransaction();
                transaction.Received(1).Success();
            }
            public void SimpleTransaction_AsTransactionalGc_1Query()
            {
                ISession session;
                IDriver  driver;

                Neo4j.Driver.V1.ITransaction transaction;
                IGraphClient graphClient;

                GetAndConnectGraphClient(out graphClient, out driver, out session, out transaction);

                ITransactionalGraphClient txGc = (ITransactionalGraphClient)graphClient;

                using (var tx = txGc.BeginTransaction())
                {
                    txGc.Cypher.Match("(n)").Set("n.Value = 'test'").ExecuteWithoutResults();
                    tx.Commit();
                }

                driver.Received(1).Session();
                session.Received(1).BeginTransaction();
                transaction.Received(1).Success();
            }