public void ReturnClientForRequestedSettings() { var host1 = "172.16.3.91"; var port1 = 3000; var client1 = _aerospikeClientFactory.GetClient(host1, port1, new List <string>()); Assert.NotNull(client1); Assert.NotEmpty(client1.Nodes); var host = client1.Nodes[0].Host.name; var port = client1.Nodes[0].Host.port; Assert.Equal(host1, host); Assert.Equal(port1, port); }
private AsyncClient GetClient(AerospikeSettings settings) { return(_clientFactory.GetClient(settings.Host, settings.Port, settings.SecondaryHosts)); }