private void CalculateBonusPoints(TeamMatch match, Entities.Match.MatchCalculationEngine engineConfiguration)
        {
            switch (engineConfiguration.BonusPointTypeID)
            {
            case BonusPointTypes.AggregateChalks:
                this.CalculateAggregateChalksBonusPoints(match, engineConfiguration);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
 private void CalculateAggregateChalksBonusPoints(TeamMatch match, Entities.Match.MatchCalculationEngine engineConfiguration)
 {
     if (match.HomeChalkScore == match.AwayChalkScore)
     {
         match.HomeBonusScore = (short)engineConfiguration.BonusPointsDraw.Value;
         match.AwayBonusScore = (short)engineConfiguration.BonusPointsDraw.Value;
     }
     else if (match.HomeChalkScore > match.AwayChalkScore)
     {
         match.HomeBonusScore = (short)engineConfiguration.BonusPointsWin.Value;
         match.AwayBonusScore = (short)engineConfiguration.BonusPointsLose.Value;
     }
     else if (match.HomeChalkScore < match.AwayChalkScore)
     {
         match.HomeBonusScore = (short)engineConfiguration.BonusPointsLose.Value;
         match.AwayBonusScore = (short)engineConfiguration.BonusPointsWin.Value;
     }
 }