//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void Setup() { OutputFormat output = new OutputFormat(new JsonFormat(), new URI("http://base.local:1234/"), null); ReadReplicaGraphDatabase db = mock(typeof(ReadReplicaGraphDatabase)); _topologyService = new FakeTopologyService(RandomMembers(3), RandomMembers(2), _myself, RoleInfo.READ_REPLICA); _dependencyResolver.satisfyDependencies(_topologyService); when(Db.DependencyResolver).thenReturn(_dependencyResolver); _databaseHealth = _dependencyResolver.satisfyDependency(new DatabaseHealth(mock(typeof(DatabasePanicEventGenerator)), _logProvider.getLog(typeof(DatabaseHealth)))); _commandIndexTracker = _dependencyResolver.satisfyDependency(new CommandIndexTracker()); _status = CausalClusteringStatusFactory.Build(output, db); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: public CausalClusteringService(@Context OutputFormat output, @Context GraphDatabaseService db) public CausalClusteringService(OutputFormat output, GraphDatabaseService db) { this._status = CausalClusteringStatusFactory.Build(output, db); }