I'm trying to stub a call to db. The basic idea is for a line of code like this:
Person person = (from p in this.Entities.FindPerson("Smith") select p).FirstOrDefault();
to return an object the way I want it without going of to db. FindPerson(string) represents a stored proc (just in case).
I tried to overwrite FindPerson but I need to return ObjectResult. It's a sealed class with no public constructors. All my attempts to create it ended with a call to db.