Esempio n. 1
0
 public override PointTotal GetPointsFromMatch(Match m, bool isHome)
 {
     return new PointTotal(m, isHome);
 }
Esempio n. 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;
 }
Esempio n. 5
0
 public void TestHome()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, false,true);
     Assert.AreEqual(UnMatch.Home, ClubHome);
 }
Esempio n. 6
0
 public void IsHomeForfeit()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, false, true);
     Assert.AreEqual(UnMatch.IsHomeForfeit, true);
 }
Esempio n. 7
0
 public void IsDraw()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, 1, 1);
     Assert.AreEqual(UnMatch.IsDraw, true);
 }
Esempio n. 8
0
 public void HomeGoals()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, 0, 1);
     Assert.AreEqual(UnMatch.HomeGoals, 1);
 }
Esempio n. 9
0
 public void AwayGoals()
 {
     Match UnMatch = new Match(ClubExterieur, ClubHome, 1, 0);
     Assert.AreEqual(UnMatch.AwayGoals, 1);
 }