Exemple #1
0
 public override PointTotal GetPointsFromMatch(Match m, bool isHome)
 {
     return new PointTotal(m, isHome);
 }
Exemple #2
0
 public PointTotal(Match m, bool home)
 {
     if(home==true)
         points += m.HomeGoals - m.AwayGoals;
     else
         points += m.AwayGoals - m.HomeGoals;
 }
 public override ITotal GetPointsFromMatch(Match m, bool isHome)
 {
     return new TotalMock(m, isHome);
 }
 public TotalMock(Match m, bool home)
 {
     this.points = m.HomeGoals - m.AwayGoals;
 }
Exemple #5
0
 public void TestHome()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, false,true);
     Assert.AreEqual(UnMatch.Home, ClubHome);
 }
Exemple #6
0
 public void IsHomeForfeit()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, false, true);
     Assert.AreEqual(UnMatch.IsHomeForfeit, true);
 }
Exemple #7
0
 public void IsDraw()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, 1, 1);
     Assert.AreEqual(UnMatch.IsDraw, true);
 }
Exemple #8
0
 public void HomeGoals()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, 0, 1);
     Assert.AreEqual(UnMatch.HomeGoals, 1);
 }
Exemple #9
0
 public void AwayGoals()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, 1, 0);
     Assert.AreEqual(UnMatch.AwayGoals, 1);
 }