I\'m evaluating unit tests using EF6 in combination with
http://www.codeproje
I came across this just now and thought I'd share the cause of my issue.
Everything was working dandy, until I implemented and ActionFilter. It turned out that in my test the Effort code was running after the instantiation of my web site. Instantiating the web site instantiated my filter, my filter requested a DataContext from the container.
Hence someone had already made use of the datacontext before I tried to configure it with Effort.
Hope this might help someone in the future, albeit it being a bit of a different cause, and I hope you solved your issue int the end!