Exemple #1
0
        public void RepoLeagueTestsInactivateALeague()
        {
            List <League> ldb = new List <League>
            {
                new League {
                    LeagueID = 0, GameTitle = "Halo", Active = true
                }
            };

            _leagueSet.Object.AddRange(ldb);
            ConnectMocksToDataStore(ldb);
            List <League> expected = new List <League>
            {
                new League {
                    LeagueID = 0, GameTitle = "Halo", Active = false
                }
            };
            bool actual = _repo.InactivateLeague(0);

            Assert.IsTrue(actual);
        }