Ejemplo n.º 1
0
 private RankingEntry EntryFromClub(Club c)
 {
     foreach (RankingEntry entry in entries)
         if (entry.Club == c)
             return entry;
     return null;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public void ToStringTest()
 {
     Club target = new Club("Bordeaux");
     Assert.AreEqual("Bordeaux", target.ToString());
 }
Ejemplo n.º 4
0
 public Match(Club homeName, Club awayName)
 {
     this.home = homeName;
     this.away = awayName;
 }
Ejemplo n.º 5
0
 public RankingEntry(Club club, PointSystem.ITotal points)
 {
     this.club = club;
     this.points = points;
 }
Ejemplo n.º 6
0
 public PointSystem.ITotal GetPoints(Club club)
 {
     return EntryFromClub(club).Points;
 }