public void Setup()
 {
     linkedIn = new LinkedInTemplate("API_KEY", "API_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");
     mockServer = MockRestServiceServer.CreateServer(linkedIn.RestTemplate);
     responseHeaders = new HttpHeaders();
     responseHeaders.ContentType = new MediaType("application", "json", Encoding.Default);
 }
 public void Setup()
 {
     linkedIn                    = new LinkedInTemplate("API_KEY", "API_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");
     mockServer                  = MockRestServiceServer.CreateServer(linkedIn.RestTemplate);
     responseHeaders             = new HttpHeaders();
     responseHeaders.ContentType = new MediaType("application", "json", Encoding.Default);
 }
	    public void IsAuthorizedForUser() 
        {
		    LinkedInTemplate linkedIn = new LinkedInTemplate("API_KEY", "API_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");
            Assert.IsTrue(linkedIn.IsAuthorized);
	    }
Beispiel #4
0
        public void IsAuthorizedForUser()
        {
            LinkedInTemplate linkedIn = new LinkedInTemplate("API_KEY", "API_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");

            Assert.IsTrue(linkedIn.IsAuthorized);
        }