Exemplo n.º 1
0
            protected internal override bool matchesSafely(HTTP.Response response)
            {
                try
                {
                    JsonNode list = TransactionMatchers.GetJsonNodeWithName(response, "rest").GetEnumerator().next();

                    assertThat(list.get(0).get("metadata").get("deleted").asBoolean(), equalTo(true));
                    assertThat(list.get(1).get("someKey").get("metadata").get("deleted").asBoolean(), equalTo(true));

                    return(true);
                }
                catch (JsonParseException)
                {
                    return(false);
                }
            }
Exemplo n.º 2
0
 private long CountNodes()
 {
     return(TransactionMatchers.CountNodes(Graphdb()));
 }