Example #1
0
 public IEnumerable<Profile> ConvertToProfiles(string jsonText)
 {
     var profile = new Profile()
     {
         FirstName = "Erik",
         LastName = "Dietrich"
     };
     return new List<Profile>() { profile };
 }
Example #2
0
        public IEnumerable<Profile> GetProfilesForLocation(string locationText)
        {
            var queryResult = _githubInquisitor.ExecuteUrlQuery(locationText);

            if (!queryResult.Contains("erikdietrich")) return Enumerable.Empty<Profile>();

            var profile = new Profile { FirstName = "Erik" };

            return Enumerable.Repeat<Profile>(profile, 1);
        }