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); }
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); }
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()); }