public void ModifyAddTeamTest() { ICollection <Team> modifiedTeams = GetFakeTeams(); foreach (Team t in modifiedTeams) { teamsStorage.Add(t); } Team thirdTeam = new Team(6, "Internazionale de Milano", "aPath", sport); teamsStorage.Add(thirdTeam); matchesStorage.Add(match); SetUpRepository(); //to make things simpler, we pretend soccer can be played by more than two teams sport = new Sport("Soccer", false); sportsStorage.Modify(sport); modifiedTeams.Add(thirdTeam); Encounter modified = new Competition(3, modifiedTeams, DateTime.Now.AddYears(2), sport); matchesStorage.Modify(modified); Encounter retrieved = matchesStorage.Get(3); Assert.AreEqual(retrieved.GetParticipants().Count, modified.GetParticipants().Count); Assert.AreEqual(retrieved.Date, modified.Date); }