public static void TestUtilizationPlayerPosition1()
        {
            Team t1 = new Team("T1", league);
            league.Teams.Add(t1);

            Team t2 = new Team("T2", league);
            league.Teams.Add(t2);

            league.Games.Add(new Game(t1, t2, DateTime.Today));

            var players = new List<Player>();
            foreach (var position in league.StartingLineupPositions)
            {
                Player p = new Player(string.Empty, t1, new[] { position });
                players.Add(p);
                t1.Players.Add(p);
            }
            double util = league.ComputeUtilization(DateTime.Today, DateTime.Today, players);
            Assert.AreEqual(1.0, util);
        }
        /// <summary>Creates a new <see cref="StartingLineupAssignment"/>.</summary>
        /// <param name="player">The player.</param>
        /// <param name="position">The position.</param>
        public StartingLineupAssignment(Player player, Position position)
        {
            if (player == null) { throw new ArgumentNullException("player"); }
            if (!player.Positions.Contains(position)) { throw new ArgumentException("Player cannot play specified position.", "player"); }

            this.player = player;
            this.position = position;
        }