For some reason this code keeps failing. Anyone that can tell me why:
var activeLoans = new List { new ActiveLoan{
I think you need to also setup the IDbSet::Find.
activeLoanMockSet.Setup(m => m.Find(It.IsAny())) .Returns(ids => activeLoans.FirstOrDefault(d => d.ID == (int)ids[0]));