private void Process(
            YahooProjectedPointsMessage input,
            IPlayerGameMetricsDao dao)
        {
            if (dao == null)
            {
                throw new ArgumentNullException(
                          "dao",
                          "parameter is null");
            }

            if (input != null)
            {
                input.PlayerGameMetrics = dao.Get(
                    input.Player.PlayerCode,
                    input.Game.GameKey());

                if (input.TestPlayer())
                {
                    Logger.Info("PGM got {0}", input.PlayerGameMetrics);
                }
            }
            else
            {
                Logger.Info("input is null");
            }
        }
        private void Process( YahooProjectedPointsMessage input )
        {
            input.Player.Points += input.PlayerGameMetrics.ProjTDp * 4;
             if ( input.TestPlayer() )
            Logger.Info( string.Format("Projected TDp = {0} * 4 = {1}", input.PlayerGameMetrics.ProjTDp, input.PlayerGameMetrics.ProjTDp * 4));

            //         var yardagePts = Math.Floor( (decimal) input.PlayerGameMetrics.ProjYDp / 25 );
             var yardagePts = (decimal) input.PlayerGameMetrics.ProjYDp / 25.0M;
             if ( input.TestPlayer() )
            Logger.Info( string.Format("Projected YDp = {0} / 25 = {1}", input.PlayerGameMetrics.ProjYDp, input.PlayerGameMetrics.ProjYDp / 25 ));

             input.Player.Points += yardagePts;
             //TODO:  -1 for Interceptions
             //TODO:  +2 per PAT pass
             if ( input.TestPlayer() )
            Logger.Info( string.Format("Projected FP = {0}", input.Player.Points ));
        }
        public AddYahooPassingPoints( YahooProjectedPointsMessage input )
        {
            Logger = NLog.LogManager.GetCurrentClassLogger();
             if ( input.TestPlayer() )
             {
            Logger.Info( string.Format( "Calculating Passing Points for {0} Game {1}",
               input.Player.PlayerNameShort, input.Game.GameName() ) );
             }

             Process( input );
        }
        public AddYahooPassingPoints(YahooProjectedPointsMessage input)
        {
            Logger = NLog.LogManager.GetCurrentClassLogger();
            if (input.TestPlayer())
            {
                Logger.Info(string.Format("Calculating Passing Points for {0} Game {1}",
                                          input.Player.PlayerNameShort, input.Game.GameName()));
            }

            Process(input);
        }
        private void Process(YahooProjectedPointsMessage input)
        {
            input.Player.Points += input.PlayerGameMetrics.ProjTDp * 4;
            if (input.TestPlayer())
            {
                Logger.Info(string.Format("Projected TDp = {0} * 4 = {1}", input.PlayerGameMetrics.ProjTDp, input.PlayerGameMetrics.ProjTDp * 4));
            }

//         var yardagePts = Math.Floor( (decimal) input.PlayerGameMetrics.ProjYDp / 25 );
            var yardagePts = (decimal)input.PlayerGameMetrics.ProjYDp / 25.0M;

            if (input.TestPlayer())
            {
                Logger.Info(string.Format("Projected YDp = {0} / 25 = {1}", input.PlayerGameMetrics.ProjYDp, input.PlayerGameMetrics.ProjYDp / 25));
            }

            input.Player.Points += yardagePts;
            //TODO:  -1 for Interceptions
            //TODO:  +2 per PAT pass
            if (input.TestPlayer())
            {
                Logger.Info(string.Format("Projected FP = {0}", input.Player.Points));
            }
        }
        private void Process( YahooProjectedPointsMessage input, IPlayerGameMetricsDao dao )
        {
            if ( dao == null ) throw new ArgumentNullException( "dao", "parameter is null" );
             if ( input != null )
             {

            input.PlayerGameMetrics = dao.Get( input.Player.PlayerCode, input.Game.GameKey() );
            if ( input.TestPlayer() )
            {
               Logger.Info( "PGM got {0}", input.PlayerGameMetrics );
            }
             }
             else
             {
            Logger.Info( "input is null" );
             }
        }