Beispiel #1
0
        public void BuildApiUrlForMemberTest()
        {
            ILinkedInAuthorization   authorization = new LinkedInAuthorizationMock();
            LinkedInService_Accessor target        = new LinkedInService_Accessor(authorization);
            string identifier   = Constants.CurrentUserIdentifier;
            string resourceName = Constants.ResourceName;
            QueryStringParameters parameters = new QueryStringParameters();
            UriBuilder            expected   = new UriBuilder("http://api.linkedin.com/v1/people/~/resource");

            UriBuilder actual = UriUtility.BuildApiUrlForMember(identifier, resourceName, parameters);

            Assert.AreEqual(expected, actual);
        }