public void AuthenticationErrorIfWrongAuthToken() { using (var client = new NeoClient(URL, "fake", "fake", CONFIG)) { client.Connect(); var exception = Record.Exception(() => client.Ping()); exception.Should().BeOfType <AuthenticationException>(); } }
public void ShouldConnectAndPing() { using (var client = new NeoClient(URL, USER, PASSWORD, CONFIG)) { client.Connect(); bool response = client.Ping(); response.Should().BeTrue(); } }
public void ServiceUnavailableExceptionError() { using (var client = new NeoClient("bolt://localhost:1111", USER, PASSWORD)) { client.Connect(); var exception = Record.Exception(() => client.Ping()); exception.Should().BeOfType <ServiceUnavailableException>(); } }