Esempio n. 1
0
        public FunctionalTestHelper(NeoServer server)
        {
            if (server.Database == null)
            {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method:
                throw new Exception("Server must be started before using " + this.GetType().FullName);
            }
            this._helper  = new GraphDbHelper(server.Database);
            this._server  = server;
            this._request = new RestRequest(server.BaseUri().resolve("db/data/"));
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void setupServer()
        public static void SetupServer()
        {
            _functionalTestHelper = new FunctionalTestHelper(Server());
            _helper = _functionalTestHelper.GraphDbHelper;
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void cleanTheDatabaseAndInitialiseTheNodeUri() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CleanTheDatabaseAndInitialiseTheNodeUri()
        {
            _helper  = new GraphDbHelper(Server().Database);
            _nodeUri = new URI(_functionalTestHelper.nodeUri() + "/" + _helper.createNode());
        }
Esempio n. 4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void setupServer()
        public static void SetupServer()
        {
            _functionalTestHelper = new FunctionalTestHelper(Server());
            _helper  = _functionalTestHelper.GraphDbHelper;
            _request = RestRequest.Req();
        }