public void RepoTeamTestsRemoveAMainTeam() { List <MainTeam> db = new List <MainTeam> { new MainTeam { MainTeamID = 0 } }; _teamSet.Object.AddRange(db); ConnectMocksToDataStore(db); bool result = _repo.InactivateMainTeam(db[0].MainTeamID); List <MainTeam> expected = new List <MainTeam> { new MainTeam { MainTeamID = 0, Active = false } }; List <MainTeam> actual = _repo.GetAllMainTeams(); Assert.IsTrue(result); Assert.AreEqual(expected[0].Active, actual[0].Active); }