예제 #1
0
        public void RepoLeagueTestsGetLeagueByID()
        {
            List <League> l = new List <League>
            {
                new League {
                    LeagueID = 0, GameTitle = "Halo"
                }
            };

            _leagueSet.Object.AddRange(l);
            ConnectMocksToDataStore(l);
            League expected = l[0];
            League actual   = _repo.GetLeagueByID(0);

            Assert.AreEqual(expected, actual);
        }