Ejemplo n.º 1
0
 private static object SendAndReceive(object value)
 {
     using (Session session = _driver.session())
     {
         StatementResult result = session.run("RETURN $value", parameters("value", value));
         Record          record = result.single();
         return(record.get(0).asObject());
     }
 }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void calls_simplistic_procedure()
        public virtual void CallsSimplisticProcedure()
        {
            using (Driver driver = GraphDatabase.driver(GraphDb.boltURI(), Configuration()), Session session = driver.session())
            {
                StatementResult result = session.run("CALL " + _procedureNamespace + ".theAnswer()");

                assertThat(result.single().get("value").asLong()).isEqualTo(42L);
            }
        }