public void GetFollowsAndRelationshipInfo() { try { // Get follows var follows = RelationshipsManager.GetFollows(); Assert.IsNotNull(follows); // Get relationship info with the first user (for example) var relInfo = RelationshipsManager.GetRelationshipinfo(follows.First().Id); // Check if relationship info is correct Assert.IsNotNull(relInfo); Assert.AreEqual(OutgoingRelationshipStatus.Follows, relInfo.OutgoingRelation); } catch (Exceptions.InstagramAPICallException) { Assert.Fail("Instagram Api error."); } }
public void GetFollowersAndRelationshipInfo() { try { // Get followers var followers = RelationshipsManager.GetFollowedBy(); Assert.IsNotNull(followers); // Get relationship info with the first user (for example) var relInfo = RelationshipsManager.GetRelationshipinfo(followers.First().Id); // Check if relationship info is correct // If the user is a follower the ingoing status must by followed_by Assert.IsNotNull(relInfo); Assert.AreEqual(IngoingRelationshipStatus.FollowedBy, relInfo.IngoingRelation); } catch (Exceptions.InstagramAPICallException) { Assert.Fail("Instagram Api error."); } }