Commits

Maxim Moiseev committed 067c2a8

Issue #1 fixed: getAllItems instead of getItem in UserAPI.GetFriendsFrom method

  • Participants
  • Parent commits 403fe90

Comments (0)

Files changed (2)

src/Common/UserAPI.fs

 
     member private this.GetFriendsFrom(queryF) =
         queryF Action.Friends
-        |> getItem Conversions.toFriend
+        |> getAllItems Conversions.toFriend
     
     member private this.GetFriends(uid:int64) =
         this.GetFriendsFrom (userQuery uid)

src/Linq2vk.Core.Tests/SimpleTests.cs

 
         [Test, Explicit]
         public void NotATest() {
-            //var friends = from f in _api.MyFriends
-            //              where f.IsOnline
-            //              select f;                             
-            //foreach (var f in friends) {
-            //    Console.WriteLine(f.Name);
-            //};
+            var friends = from f in _api.MyFriends
+                          where f.IsOnline
+                          select f;
+            foreach (var f in friends) {
+                Console.WriteLine(f.Name);
+            };
 
             var updates = _api.StatusUpdates.Take(20).ToArray();
             foreach (var u in updates) {