public void ValidTeamCanBeRemoved() { Team team1 = new Team(club.Guid, Guid.NewGuid()) { Name = "U10" }; Team team2 = new Team(club.Guid, Guid.NewGuid()) { Name = "U11" }; Team team3 = new Team(club.Guid, Guid.NewGuid()) { Name = "U12" }; club.AddTeam(team1); club.AddTeam(team2); club.AddTeam(team3); Assert.True(teamDataStore.GetTeamCount(club.Guid) == 3); club.RemoveTeam(team2); Assert.True(teamDataStore.GetTeamCount(club.Guid) == 2); Assert.Null(teamDataStore.GetTeam(club.Guid, team2.Guid)); }
public void TeamCannotBeNull() { Assert.Throws <ArgumentNullException>(() => club.AddTeam(null)); }