public void TestResolve()
        {
            var connectionParams = _connectionResolver.ResolveAsync("correlationId").Result;

            Assert.Equal("http", connectionParams.Get("protocol"));
            Assert.Equal("localhost", connectionParams.Get("host"));
            Assert.Equal("3000", connectionParams.Get("port"));

            var restConfigDiscovery = ConfigParams.FromTuples(
                "connection.protocol", "http",
                "connection.host", "localhost",
                "connection.port", 3000,
                "connection.discovery_key", "Discovery key value"
                );

            IReferences references = new References();

            _connectionResolver = new ConnectionResolver(restConfigDiscovery, references);
            try
            {
                _connectionResolver.ResolveAsync("correlationId").Wait();
            }
            catch (Exception ex)
            {
                Assert.IsType <ConfigException>(ex.InnerException);
            }
        }
 public ConnectionResolverTest()
 {
     _connectionResolver = new ConnectionResolver(RestConfig);
     _connectionResolver.SetReferences(new References());
 }