Is it possible to use the syntax
using(_mocks.Record()) { //... } using(_mocks.Playback()) { //... }
with StructureMap RhinoAutoMocker?
In Jeremy Millers original post AutoMocker in StructureMap 2.5 this seems possible since RhinoAutoMocker inherits MockRepository, but in version 2.5.2 of StructureMap this seems to be implemented in a slightly different way.
I finally solved this using a custom written AutoMocker and ServiceLocator.
I still don’t know if there is a built in way to do this. But this works and saves me from rewritting 1200 tests.