Join() public method

public Join ( Group group ) : void
group Group
return void
Ejemplo n.º 1
0
 public void UserShouldBeAbleToJoinGroup()
 {
     User user = new User(new LoginId("123"), null);
     Group group = new Group("Nature-Lovers");
     user.Join(group);
     Assert.AreEqual(1, user.Groups.Count());
     Assert.True(user.Groups.Contains(group));
 }