Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup()
        public virtual void Setup()
        {
            File graphDir = new File(GraphDatabaseSettings.DEFAULT_DATABASE_NAME);

            _confDir = new File(graphDir, "conf");
            _homeDir = new File(graphDir, "home");
            @out     = mock(typeof(OutsideWorld));
            ResetOutsideWorldMock();
            _tool = new AdminTool(CommandLocator.fromServiceLocator(), BlockerLocator.fromServiceLocator(), @out, true);
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static void main(String[] args) throws java.io.IOException
        public static void Main(string[] args)
        {
            Path homeDir   = Paths.get(Neo4jHome);
            Path configDir = Paths.get(Neo4jConf);
            bool debug     = !string.ReferenceEquals(Neo4jDebug, null);

            using (RealOutsideWorld outsideWorld = new RealOutsideWorld())
            {
                (new AdminTool(CommandLocator.fromServiceLocator(), BlockerLocator.fromServiceLocator(), outsideWorld, debug)).Execute(homeDir, configDir, args);
            }
        }