//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void restart(org.neo4j.io.fs.FileSystemAbstraction fs) throws java.io.IOException private void Restart(FileSystemAbstraction fs) { if (_db != null) { _db.shutdown(); } fs.Mkdirs(_storeDir); TestGraphDatabaseFactory dbFactory = new TestGraphDatabaseFactory(); _db = dbFactory.setUserLogProvider(_userLogProvider).setInternalLogProvider(_internalLogProvider).setFileSystem(new UncloseableDelegatingFileSystemAbstraction(fs)).newImpermanentDatabaseBuilder(_storeDir).setConfig(index_background_sampling_enabled, "false").newGraphDatabase(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @AfterEach void tearDown() internal virtual void TearDown() { if (_db != null) { _db.shutdown(); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() public virtual void TearDown() { _database.shutdown(); }