private RankingEntry EntryFromClub(Club c) { foreach (RankingEntry entry in entries) if (entry.Club == c) return entry; return null; }
public Ranking(PointSystem system, Club [] clubs) { this.system = system; this.entries=new RankingEntry[clubs.Length]; for(int i=0; i<clubs.Length; i++) this.entries[i]=new RankingEntry(clubs[i], system.InitialPoints); }
public void ToStringTest() { Club target = new Club("Bordeaux"); Assert.AreEqual("Bordeaux", target.ToString()); }
public Match(Club homeName, Club awayName) { this.home = homeName; this.away = awayName; }
public RankingEntry(Club club, PointSystem.ITotal points) { this.club = club; this.points = points; }
public PointSystem.ITotal GetPoints(Club club) { return EntryFromClub(club).Points; }