コード例 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReturn204WhenPropertiesAreRemoved()
        public virtual void ShouldReturn204WhenPropertiesAreRemoved()
        {
            long nodeId = _helper.createNode();
            IDictionary <string, object> map = new Dictionary <string, object>();

            map["jim"] = "tobias";
            _helper.setNodeProperties(nodeId, map);
            JaxRsResponse response = RemoveNodePropertiesOnServer(nodeId);

            assertEquals(204, response.Status);
            response.Close();
        }
コード例 #2
0
        private long CreateAndIndexNode(string name)
        {
            long id = _helper.createNode();

            _helper.setNodeProperties(id, Collections.singletonMap("name", name));
            _helper.addNodeToIndex("node", "name", name, id);
            return(id);
        }