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