Пример #1
0
        private LinkedInProfile CreateLinkedInProfile(LinkedInApiProfile profile)
        {
            // Use the id of the current anonymous user as the UserId.

            return(new LinkedInProfile
            {
                Id = profile.Id,
                UserId = CurrentAnonymousUser.Id,
                FirstName = profile.FirstName,
                LastName = profile.LastName,
                OrganisationName = profile.OrganisationName,
                Industries = _linkedInQuery.GetIndustries(profile.Industry),
                Location = _linkedInQuery.GetLocation(profile.Country, profile.Location),
            });
        }
Пример #2
0
 public void TestLocations()
 {
     Assert.IsNull(_linkedInQuery.GetLocation("ab", "abc"));
     Assert.AreEqual(_locationQuery.ResolveLocation(_locationQuery.GetCountry("Australia"), "Norlane VIC 3214"), _linkedInQuery.GetLocation("au", "Norlane"));
 }