Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/DbTestSet.cs =================================================================== diff -u -r4adf3910b91fba2fe6e7f7766836082046ab769a -re6314b0eda3a1b258c4ce336ac1ddd3ada77970b --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/DbTestSet.cs (.../DbTestSet.cs) (revision 4adf3910b91fba2fe6e7f7766836082046ab769a) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/DbTestSet.cs (.../DbTestSet.cs) (revision e6314b0eda3a1b258c4ce336ac1ddd3ada77970b) @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Data.Entity; using System.Linq; using Rhino.Mocks; @@ -7,7 +8,7 @@ { public static class DbTestSet { - public static IDbSet GetDbTestSet(MockRepository mockRepository, IList data) where T : class + public static IDbSet GetDbTestSet(MockRepository mockRepository, ObservableCollection data) where T : class { var queryable = data.AsQueryable(); var dbSet = mockRepository.StrictMock>(); @@ -16,6 +17,7 @@ dbSet.Stub(m => m.Expression).Return(queryable.Expression); dbSet.Stub(m => m.ElementType).Return(queryable.ElementType); dbSet.Stub(m => m.GetEnumerator()).Return(queryable.GetEnumerator()); + dbSet.Stub(m => m.Local).Return(data); return dbSet; } }