IsMemberSinceAtLeastTwoYears() private method

private IsMemberSinceAtLeastTwoYears ( ) : bool
return bool
コード例 #1
0
 public TeamChairmanship AppointChairman(TeamMember member)
 {
     Enforce.That(member.IsPartOf(_id), Sorry.NotPartOfTheTeam);
     Enforce.That(member.IsMemberSinceAtLeastTwoYears(), Sorry.NotMemberSinceAtLeastTwoYears);
     return(new TeamChairmanship(_id, member.Id, DateTime.Today));
 }
コード例 #2
0
ファイル: Team.cs プロジェクト: yreynhout/NoBodyToBuild
 public TeamChairmanship AppointChairman(TeamMember member)
 {
     Enforce.That(member.IsPartOf(_id), Sorry.NotPartOfTheTeam);
       Enforce.That(member.IsMemberSinceAtLeastTwoYears(), Sorry.NotMemberSinceAtLeastTwoYears);
       return new TeamChairmanship(_id, member.Id, DateTime.Today);
 }