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)); }
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); }