I am trying to mock a class that has a dependency on a concrete class, just like:
AutoMockContainer with support for automocking classes with non-interface dependencies
I tried 3 different AutoMocking Frameworks (UnityAutoMoq, AutoMoq and AutoMockContainer contained in Moq.Contrib). None of these frameworks support creating mocks for concrete dependencies. I understand Mark Seeman has given an example on how to do this with autofac, but I don't understand why it's not supported out of the box from these frameworks. Is there a framework that supports this that I didn't try ? If not, can someone help me to do this with Unity ?
Me and a colleague have banged our heads against this all day long without finding an answer, any help would be greatly appreciated.