public FBDataService(UrlGenerator urlGenerator, AuthService authService, JsonHelper jsonHelper, HttpClient httpClient) { this.urlGenerator = urlGenerator; this.authService = authService; this.jsonHelper = jsonHelper; this.httpClient = httpClient; }
public void ProfileUrlValid() { UrlGenerator urlGenerator = new UrlGenerator(); string username = "******"; string access_token = "access_token=1234"; string resultProfileUrl = "https://graph.facebook.com/dushyant?access_token=1234&fields=id,name,relationship_status,friends.fields(relationship_status,gender,name)"; Assert.AreEqual(urlGenerator.ConstructProfileUrl(username, access_token) , resultProfileUrl); }
public AuthService(UrlGenerator urlGenerator) { this.urlGenerator = urlGenerator; }