HasMember() private method

private HasMember ( TeamMemberId teamMemberId ) : bool
teamMemberId TeamMemberId
return bool
Esempio n. 1
0
 public void AppointAsChairmanOf(Team team)
 {
     Enforce.That(team.HasMember(_teamMemberId), Sorry.NotPartOfTheTeam);
     Enforce.That(IsMemberSinceAtLeastTwoYears(), Sorry.NotMemberSinceAtLeastTwoYears);
     team.SetChairman(_teamMemberId);
 }
Esempio n. 2
0
 public void AppointAsChairmanOf(Team team)
 {
     Enforce.That(team.HasMember(_teamMemberId), Sorry.NotPartOfTheTeam);
       Enforce.That(IsMemberSinceAtLeastTwoYears(), Sorry.NotMemberSinceAtLeastTwoYears);
       team.SetChairman(_teamMemberId);
 }