public void it_preserves_the_path()
        {
            var simpleKeyAuthorizer = new SimpleKeyAuthorizationPolicy(
                new SimpleKeyAuthorizationCredential("abcdefgh", "stuvwxyz")
            );

            var request = new Request(RequestLine.Get(new Uri("http://xxx/yyy/zzz")));
            var authorized = simpleKeyAuthorizer.Authorize(request);

            Assert.AreEqual(request.RequestLine.Uri.AbsolutePath, authorized.RequestLine.Uri.AbsolutePath);
        }
        public void it_preserves_other_params()
        {
            var simpleKeyAuthorizer = new SimpleKeyAuthorizationPolicy(
                new SimpleKeyAuthorizationCredential("abcdefgh", "stuvwxyz")
            );

            var request = new Request(RequestLine.Get(new Uri("http://xxx/?a=b")));
            var authorized = simpleKeyAuthorizer.Authorize(request);

            var expected = new Uri("http://xxx/?a=b&app_key=abcdefgh&user_access_key=stuvwxyz");
            Assert.AreEqual(expected, authorized.RequestLine.Uri);
        }