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);
            }
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @Nonnull public AdminCommand create(java.nio.file.Path homeDir, java.nio.file.Path configDir, OutsideWorld outsideWorld)
        public override AdminCommand Create(Path homeDir, Path configDir, OutsideWorld outsideWorld)
        {
            return(new HelpCommand(_usage, outsideWorld.stdOutLine, CommandLocator.fromServiceLocator()));
        }
Esempio n. 4
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()
        {
            _usageCmd = new Usage(AdminTool.SCRIPT_NAME, CommandLocator.fromServiceLocator());
        }