Exemplo n.º 1
0
        public void TestSimpleSelection()
        {
            IGraphClient client = new TestGraphClient();
            string       query  = client
                                  .Where("FirstName", "test")
                                  .BuildGremlinQuery();

            Assert.AreEqual("g.V().has('FirstName', 'test')", query);
        }
Exemplo n.º 2
0
        public void TestSimpleSelectionWithOut()
        {
            IGraphClient client = new TestGraphClient();
            string       query  = client
                                  .Where("FirstName", "test")
                                  .SelectOut <Login>("has")
                                  .BuildGremlinQuery();

            Assert.AreEqual("g.V().has('FirstName', 'test').out('has').hasLabel('Login')", query);
        }