IsFollowedBy() 공개 메소드

Zjistit jestli některý uživatel sleduje uživatele
public IsFollowedBy ( User follower ) : bool
follower User potenciální follower
리턴 bool
예제 #1
0
 public void IsFollowedByTest()
 {
     User user1 = new User();
     User user2 = new User();
     Assert.IsFalse(user1.IsFollowedBy(user2));
     userService.FollowUser(user1, user2);
     Assert.IsTrue(user1.IsFollowedBy(user2));
 }