예제 #1
0
        //    Does NextWeek equate to Current Week
        public bool IsCurrent(NflTeam team, DateTime when)
        {
            var nextGame    = team.NextGame(when);
            var currentWeek = Utility.CurrentNFLWeek();

            return(currentWeek.Season.Equals(nextGame.Season) && currentWeek.WeekNo.Equals(nextGame.WeekNo));
        }
예제 #2
0
        private string Opponent(
            string teamCode)
        {
            var team     = new NflTeam(teamCode);
            var nextGame = team.NextGame(
                DateTime.Now);

            if (nextGame == null)
            {
                return(string.Empty);
            }

            var opponent = nextGame.OpponentOut(
                teamCode);

            return(opponent);
        }