Skip to content

Commit 83f9118

Browse files
committed
tests(DefaultEntityRepository): fix test setup
1 parent 3113aa5 commit 83f9118

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/UnitTests/Data/DefaultEntityRepository_Tests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,10 @@ private DefaultEntityRepository<TodoItem> GetRepository()
8989
.Setup(m => m.RelationshipsToUpdate)
9090
.Returns(_relationshipsToUpdate);
9191

92-
_jsonApiContextMock
93-
.Setup(m => m.GetDbContextResolver())
94-
.Returns(_contextResolverMock.Object);
95-
9692
return new DefaultEntityRepository<TodoItem>(
9793
_loggFactoryMock.Object,
98-
_jsonApiContextMock.Object);
94+
_jsonApiContextMock.Object,
95+
_contextResolverMock.Object);
9996
}
10097
}
10198
}

0 commit comments

Comments
 (0)