I'm attempting to update (not add) a record in a mocked DB and am not succeeding. I have a FakeDbEntries that is an IList<LogEntry>. I have Mocked my DbContext as
_mockLogRepo = Mock.Create<ILogRepo>();
_mockLogRepo.Arrange(m => m.LogEntries).ReturnsCollection(FakeDbEntries());
When I run the unit under test that calls the ILogRepo and does the update, the SaveChanges() never sticks.