public void CypherShouldStartQueryFromCurrentNodeReference() { var graphClient = Substitute.For<IRawGraphClient>(); var reference = new NodeReference(123, graphClient); var query = reference.StartCypher("foo").Query; Assert.AreEqual("START foo=node({p0})", query.QueryText); Assert.AreEqual(123, query.QueryParameters["p0"]); }
public void CypherShouldStartQueryFromCurrentNodeReference() { var graphClient = Substitute.For <IRawGraphClient>(); var reference = new NodeReference(123, graphClient); var query = reference.StartCypher("foo").Query; Assert.AreEqual("START foo=node({p0})", query.QueryText); Assert.AreEqual(123, query.QueryParameters["p0"]); }