public void TestParticipation() { ICoureurRepository coureurs = new CoureurRepository(); IParticipationRepository parts = new ParticipationRepository(); ICourseRepository courses = new CourseRepository(); parts.DeleteALL(); coureurs.DeleteALL(); courses.DeleteALL(); Coureur coureur1 = new Coureur("coureur1", "1", "XXXXXXXXX", "*****@*****.**", "X", DateTime.Today); Course course1 = new Course("", 42); Participation part1 = new Participation(coureur1, course1, 0, 42); coureur1.Participations.Add(part1); course1.Participations.Add(part1); coureurs.Save(coureur1); List <Coureur> result = coureurs.GetAll(); Assert.IsTrue(result[0] == coureur1); coureurs.DeleteALL(); }