Пример #1
0
        private static string SetColour(string takenColour, NFLPlayer p)
        {
            var theColour = "WHITE";

            if (p.IsFantasyPlayer())
            {
                if (p.Owner == "CO")
                {
                    theColour = "YELLOW";
                }
                else
                {
                    if (p.Owner == "**")
                    {
                        theColour = "LIME";
                        if (p.PlayerRole.Trim().Length == 0)
                        {
                            theColour = "CYAN";
                        }
                    }
                    else
                    {
                        theColour = takenColour;
                    }
                }
            }
            return(theColour);
        }
Пример #2
0
        private string ScoresOut(string name)
        {
            string strOut = String.Empty;

            if (name.Length > 0)
            {
                if (_mPlayer.IsFantasyPlayer())
                {
                    strOut = String.Format("{0}-{1}  {2:0.0}",
                                           _mPlayer.CurrScores, _mPlayer.Scores, _mPlayer.ScoresPerYear());
                }
            }
            return(strOut);
        }
Пример #3
0
 private static string SetColour(string takenColour, NFLPlayer p)
 {
     var theColour = "WHITE";
     if (p.IsFantasyPlayer())
     {
         if (p.Owner == "CO")
             theColour = "YELLOW";
         else
         {
             if (p.Owner == "**")
             {
                 theColour = "LIME";
                 if (p.PlayerRole.Trim().Length == 0) theColour = "CYAN";
             }
             else
                 theColour = takenColour;
         }
     }
     return theColour;
 }
 public void TestWilleSneadIsAFantasyPlayer()
 {
     var p = new NFLPlayer("SNEAWI01");
      Assert.IsTrue(p.IsFantasyPlayer());
 }