protected Task <TeamLeagueTableLinePoints> CalculateByChalks(Entities.League league, EntrantScoreSummary scores)
        {
            var result = new TeamLeagueTableLinePoints
            {
                Points      = scores.ChalkScore,
                BonusPoints = 0
            };

            return(Task.FromResult(result));
        }
        protected Task <TeamLeagueTableLinePoints> CalculateByResultPoints(Entities.League league, EntrantScoreSummary scores)
        {
            short points = 0;

            if (scores.ResultTypeID == ResultType.Win)
            {
                points = league.ResultWinPoints.Value;
            }
            else if (scores.ResultTypeID == ResultType.Lose)
            {
                points = league.ResultLosePoints.Value;
            }
            else if (scores.ResultTypeID == ResultType.Draw)
            {
                points = league.ResultDrawPoints.Value;
            }

            var result = new TeamLeagueTableLinePoints
            {
                Points      = points,
                BonusPoints = 0
            };

            return(Task.FromResult(result));
        }