private static int GetPoints(FantasyConfiguration config,
                              FantasyPlayerAggregateView player)
 {
     return(player.Id == null || string.IsNullOrEmpty(player.Id)
         ? 0
         : player.FieldGoalsFifty *config.FieldGoalLessThanFifty +
            player.FieldGoalsForty *config.FieldGoalLessThanForty +
            player.FieldGoalsThirty *config.FieldGoalLessThanThirty +
            player.FieldGoalsTwenty *config.FieldGoalLessThanTwenty +
            player.FieldGoalsMax *config.FieldGoalMax +
            player.PassingInterceptions *config.Interception +
            player.PassingTouchdowns *config.PassingTouchdown +
            player.PassingTwoPointConversions *config.TwoPointConversion +
            player.PassingYards / config.PassingYardsPerPoint +
            player.ReceivingTouchdowns *config.ReceivingTouchdown +
            player.ReceivingTwoPointConversions *config.TwoPointConversion +
            player.ReceivingYards / config.ReceivingYardsPerPoint +
            player.Receptions *config.Reception +
            player.RushingTouchdowns *config.RushingTouchdown +
            player.RushingTwoPointConversions *config.TwoPointConversion +
            player.RushingYards / config.RushingYardsPerPoint +
            player.Fumbles *config.Fumble +
            player.FumblesLost *config.FumbleLost +
            player.Pats *config.Pat);
 }
 private static int GetGamesPlayedOrOne(IReadOnlyDictionary <string, FantasyPlayerAggregateView> playerMap,
                                        FantasyPlayerAggregateView player)
 {
     return(playerMap.ContainsKey(player.Id) && playerMap[player.Id].GamesPlayed > 0
         ? playerMap[player.Id].GamesPlayed
         : 1);
 }