I'm trying to wrap the NHibernate Fetch extension method so that I can test queries using it without a full blown NHibernate session.
I've followed this approach and it seems to work OK, however using it means I need to give a different name to the new Fetch method. (EagerlyFetch is used in the example)
If I rename it to Fetch, I get a infinite loop since the wrapper calls it's own Fetch extension method instead of the NHibernate.Linq one.
Does anybody know a way around this. I guess I can add another level of abstraction, but just hoping there is something a little more graceful.