//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldGet200WhenQueryingIndex() public virtual void ShouldGet200WhenQueryingIndex() { string indexName = _indexes.newInstance(); string key = "bobsKey"; string value = "bobsValue"; long relationship = _helper.createRelationship("TYPE"); _helper.addRelationshipToIndex(indexName, key, value, relationship); JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.indexRelationshipUri(indexName) + "?query=" + key + ":" + value); assertEquals(200, response.Status); }
private void CreateTheMatrix() { // Create the matrix example _thomasAnderson = CreateAndIndexNode("Thomas Anderson"); _trinity = CreateAndIndexNode("Trinity"); long tank = CreateAndIndexNode("Tank"); long knowsRelationshipId = _helper.createRelationship("KNOWS", _thomasAnderson, _trinity); _thomasAndersonLovesTrinity = _helper.createRelationship("LOVES", _thomasAnderson, _trinity); _helper.setRelationshipProperties(_thomasAndersonLovesTrinity, Collections.singletonMap("strength", 100)); _helper.createRelationship("KNOWS", _thomasAnderson, tank); _helper.createRelationship("KNOWS", _trinity, tank); // index a relationship _helper.createRelationshipIndex("relationships"); _helper.addRelationshipToIndex("relationships", "key", "value", knowsRelationshipId); // index a relationship _helper.createRelationshipIndex("relationships2"); _helper.addRelationshipToIndex("relationships2", "key2", "value2", knowsRelationshipId); }