Beispiel #1
0
        public decimal GetProjectedFantasyPoints(LeagueOptions options, SystemWideValues systemWideValues, bool yearFinished, bool simpleProjections, IClock clock)
        {
            var currentGamesScore = PublisherGames.Sum(x => x.GetProjectedOrRealFantasyPoints(options.ScoringSystem, systemWideValues, simpleProjections, clock));
            var availableSlots    = GetAvailableSlots(options, yearFinished);
            var emptySlotsScore   = availableSlots * systemWideValues.AverageStandardGamePoints;

            return(currentGamesScore + emptySlotsScore);
        }
Beispiel #2
0
        public decimal GetProjectedOrRealFantasyPoints(ScoringSystem scoringSystem, SystemWideValues systemWideValues, bool simpleProjections, IClock clock)
        {
            if (MasterGame.HasNoValue)
            {
                return(systemWideValues.GetAveragePoints(CounterPick));
            }

            decimal?fantasyPoints = CalculateFantasyPoints(scoringSystem, clock);

            if (fantasyPoints.HasValue)
            {
                return(fantasyPoints.Value);
            }

            if (simpleProjections)
            {
                return(MasterGame.Value.GetSimpleProjectedFantasyPoints(systemWideValues, CounterPick));
            }

            return(MasterGame.Value.GetProjectedOrRealFantasyPoints(scoringSystem, CounterPick, clock));
        }
 public decimal GetSimpleProjectedFantasyPoints(SystemWideValues systemWideValues, bool counterPick)
 {
     return(systemWideValues.GetAveragePoints(counterPick));
 }