Exemplo n.º 1
0
        public void RepoLeagueTestsUpdateLeagueName()
        {
            List <League> l = new List <League>
            {
                new League {
                    LeagueID = 0, GameTitle = "Halo", MaxPlayers = 2, LeagueName = "Blah"
                }
            };

            _leagueSet.Object.AddRange(l);
            ConnectMocksToDataStore(l);
            bool          result   = _repo.UpdateLeagueName(0, "hi");
            List <League> actual   = _repo.GetAllLeagues();
            List <League> expected = new List <League>
            {
                new League {
                    LeagueID = 0, GameTitle = "Halo", MaxPlayers = 2, LeagueName = "hi"
                }
            };

            Assert.IsTrue(result);
            CollectionAssert.AreEqual(expected, actual);
        }