Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/TestDbSet.cs =================================================================== diff -u -r4e14ed090d09a220a790b3562ceb4232dab1cce6 -rbc9552772d4e6a6bd786dfcaef808da1964e8c53 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/TestDbSet.cs (.../TestDbSet.cs) (revision 4e14ed090d09a220a790b3562ceb4232dab1cce6) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/TestDbSet.cs (.../TestDbSet.cs) (revision bc9552772d4e6a6bd786dfcaef808da1964e8c53) @@ -74,7 +74,8 @@ public override IEnumerable RemoveRange(IEnumerable entities) { - foreach (var e in entities) + var list = entities.ToList(); + foreach (var e in list) { collection.Remove(e); }