public void CreateCodeSearchRequest()
        {
            var link = new CodeSearchLink();
            var request = link.CreateRequest();

            Assert.Equal(HttpMethod.Get, request.Method);
            Assert.Null(request.RequestUri);  // URL provided by hypermedia
        }
        public void CreateCodeSearchRequestWithUriTemplate()
        {
            var link = new CodeSearchLink()
            {
                Template = new UriTemplate("http://api.github.com/search{?query,sort,page,per_page}"),
                Query = "panic"
            };
            
            var request = link.CreateRequest();

            Assert.Equal(HttpMethod.Get, request.Method);
            Assert.Equal("http://api.github.com/search?query=panic", request.RequestUri.AbsoluteUri);  // URL provided by hypermedia
        }