Open
Description
If you modify the property which you queried on, the enumerable re-evaluates and it's empty.
var oldResults = test.ExecuteStageImportRecords();
var oldThings = test.DatabaseMock.Things.Where(i => i.SummaryId == test.SummaryId);
foreach (var record in oldThings)
{
record.SummaryId--;
record.UniqueId = Guid.NewGuid();
}
var oldGuids = oldThings.Select(i => i.UniqueId);
var actualThings = test.ExecuteStageImportRecords();
var containsOldRecords = actualResults.Any(r => oldGuids.Contains(r.Id));