private string GenerateBody()
        {
            var bodyOut = new StringBuilder();

            NflTeam = new NflTeam(TeamCode);
            NflTeam.LoadTeam();
            PlayerCount = NflTeam.PlayerList.Count;
#if DEBUG
            Utility.Announce(string.Format("   {0} Roster Count : {1}", TeamCode, PlayerCount));
#endif
            bodyOut.AppendLine(NflTeam.RatingsOut());
            bodyOut.AppendLine();
            AppendPlayerLine(bodyOut, "QB");
            AppendPlayerLine(bodyOut, "Q2");
            AppendPlayerLine(bodyOut, "RB");
            AppendPlayerLine(bodyOut, "R2");
            AppendPlayerLine(bodyOut, "RR");
            AppendPlayerLine(bodyOut, "3D");
            AppendPlayerLine(bodyOut, "SH");
            AppendPlayerLine(bodyOut, "FB");
            AppendPlayerLine(bodyOut, "W1");
            AppendPlayerLine(bodyOut, "W2");
            AppendPlayerLine(bodyOut, "W3");
            AppendPlayerLine(bodyOut, "TE");
            AppendPlayerLine(bodyOut, "T2");
            AppendPlayerLine(bodyOut, "PR");
            AppendPlayerLine(bodyOut, "KR");
            AppendPlayerLine(bodyOut, "PK");
            AppendPlayerLine(bodyOut, "INJ");
            AppendPlayerLine(bodyOut, "SUS");
            AppendPlayerLine(bodyOut, "HO");
            return(bodyOut.ToString());
        }
        public List <NFLPlayer> GetPlayers(string posDesc)
        {
            var desiredRole = "S";

            if (posDesc == "R2" || posDesc == "Q2" || posDesc == "T2")
            {
                desiredRole = "B";
            }
            if (posDesc == "RR")
            {
                desiredRole = "R";
            }
            if (posDesc == "INJ")
            {
                desiredRole = "I";
            }
            if (posDesc == "SUS")
            {
                desiredRole = "X";
            }
            if (posDesc == "HO")
            {
                desiredRole = "H";
            }
            var playerList = new List <NFLPlayer>();

            if (NflTeam == null)
            {
                NflTeam = new NflTeam(TeamCode);
                NflTeam.LoadTeam();
            }
            foreach (var p in NflTeam.PlayerList)
            {
                var player = ( NFLPlayer )p;
                if (HasPos(posDesc, player, desiredRole) && RoleMatches(posDesc, desiredRole, player))
                {
                    player.LoadOwner(LeagueInFocus);
                    playerList.Add(player);
                }
            }
            ApplyRules(posDesc, playerList);
            return(playerList);
        }
		public void CheckPlayers( string teamCode )
		{
			var team = new NflTeam(teamCode);
			team.LoadTeam();
			foreach (NFLPlayer plyr in team.PlayerList)
			{
				if (plyr.IsMissingDob())
				{
					Console.WriteLine($"{plyr.PlayerNameShort} has no dob");
					Sender.Send(
						new DataFixCommand
						{
							FirstName = plyr.FirstName,
							LastName = plyr.Surname,
							TeamCode = teamCode
						});
				}
			}
			StoreRun("MissingPlayerDataChecker");
		}
        private string GenerateBody()
        {
            var bodyOut = new StringBuilder();

            NflTeam = new NflTeam(TeamCode);
            NflTeam.LoadTeam();
            PlayerCount = NflTeam.PlayerList.Count;

            TraceIt($"   {TeamCode} Roster Count : {PlayerCount}");

            bodyOut.AppendLine(NflTeam.RatingsOut() + "    " + NflTeam.SeasonProjectionOut());
            bodyOut.AppendLine();
            bodyOut.AppendLine(NflTeam.ScheduleHeaderOut());
            bodyOut.AppendLine(NflTeam.ScheduleOut());
            bodyOut.AppendLine(NflTeam.ScoreCountsOut());

            bodyOut.AppendLine();
            bodyOut.AppendLine();
            AppendPlayerLine(bodyOut, "QB");
            AppendPlayerLine(bodyOut, "Q2");
            AppendPlayerLine(bodyOut, "RB");
            AppendPlayerLine(bodyOut, "R2");
            AppendPlayerLine(bodyOut, "RR");
            AppendPlayerLine(bodyOut, "3D");
            AppendPlayerLine(bodyOut, "SH");
            AppendPlayerLine(bodyOut, "FB");
            AppendPlayerLine(bodyOut, "W1");
            AppendPlayerLine(bodyOut, "W2");
            AppendPlayerLine(bodyOut, "W3");
            AppendPlayerLine(bodyOut, "TE");
            AppendPlayerLine(bodyOut, "T2");
            AppendPlayerLine(bodyOut, "PR");
            AppendPlayerLine(bodyOut, "KR");
            AppendPlayerLine(bodyOut, "PK");
            AppendPlayerLine(bodyOut, "INJ");
            AppendPlayerLine(bodyOut, "SUS");
            AppendPlayerLine(bodyOut, "HO");

            bodyOut.AppendLine();
            bodyOut.AppendLine(
                $"   {TeamCode} Roster Count : {PlayerCount}");
            bodyOut.AppendLine();
            bodyOut.AppendLine();
            NflTeam.LoadPassUnit();
            bodyOut.AppendLine(
                $"Pass Unit : ({NflTeam.PoRating()})");
            var lines = NflTeam.PassUnit.DumpUnit();

            foreach (var line in lines)
            {
                bodyOut.AppendLine(line);
            }

            NflTeam.LoadRushUnit();
            bodyOut.AppendLine(
                $"Rush Unit : ({NflTeam.RoRating()})");
            lines = NflTeam.RunUnit.DumpUnit();
            foreach (var line in lines)
            {
                bodyOut.AppendLine(line);
            }

            return(bodyOut.ToString());
        }