GetPlayedWith test RequestInfo on each user first

This commit is contained in:
Garry Newman 2019-05-01 13:23:13 +01:00
parent cf0e3417de
commit 96eeea1662

View File

@ -35,10 +35,12 @@ public void GetBlocked()
} }
[TestMethod] [TestMethod]
public void GetPlayedWith() public async Task GetPlayedWith()
{ {
foreach ( var friend in SteamFriends.GetPlayedWith() ) foreach ( var friend in SteamFriends.GetPlayedWith() )
{ {
await friend.RequestInfoAsync();
Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" ); Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" );
Console.WriteLine( $" {string.Join( ", ", friend.NameHistory )}" ); Console.WriteLine( $" {string.Join( ", ", friend.NameHistory )}" );