//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUp() throws java.net.URISyntaxException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void SetUp() { if (_portRegistryOverrider != null) { _portRegistryOverrider.accept(_portRegistry); } else { when(_portRegistry.getLocalAddress("bolt")).thenReturn(new HostnamePort("localhost", 7687)); } DependencyResolver dependencyResolver = mock(typeof(DependencyResolver)); when(dependencyResolver.ResolveDependency(typeof(ConnectorPortRegister))).thenReturn(_portRegistry); when(_neoServer.Database.Graph.DependencyResolver).thenReturn(dependencyResolver); }
public override HostnamePort LookupConnector(string connectorKey) { return(_connectorPortRegister.getLocalAddress(connectorKey)); }
private URI ConnectorUri(string scheme, Connector connector) { HostnamePort hostPort = _connectorPortRegister.getLocalAddress(connector.Key()); return(URI.create(scheme + "://" + hostPort + "/")); }