Ejemplo n.º 1
0
        public void RepoEnsureICanGetAllLeagues()
        {
            List <League> expected = new List <League>
            {
                new League {
                    LeagueName = "COD"
                },
                new League {
                    LeagueName = "Halo"
                }
            };


            _leagueSet.Object.AddRange(expected);
            ConnectMocksToDataStore(expected);

            List <League> actual = _repo.GetAllLeagues();

            Assert.IsNotNull(expected);
            CollectionAssert.AreEqual(expected, actual);
        }