public void testGetAllFriendsInfoAsync() { int testUserId = 39; int expectedListLength = 2; Assert.AreEqual(expectedListLength, restAPIService.getAllFriendsInfoAsync(testUserId).Result.Count); }
public async Task <List <FriendViewModel> > getAllFriendsInfo(int userId) //calling on rest api to return a list of Friend View Model { return(await restAPIService.getAllFriendsInfoAsync(userId)); }