I have been using (and liking) the new Rhino Mocks AAA syntax. However, one thing that puzzles me is that I have to create my stubs and mocks like this:
var v1 = MockRepository.GenerateStub<MyClass>();
instead of with an instantiated MockRepository:
var mr = new MockRepository();
var v1 = mr.GenerateStub<MyClass>();
This syntax would make transitioning my unit tests easier.
From reading Ayende's wiki it seems like the second syntax should work, but I just can't get it to function correctly. If I do it that way then I have to use Record/Playback blocks. I also can't find any examples online of anyone using the new syntax without the static methods.
So my question is, has anyone else managed to get the AAA syntax working without using the static methods and without having to resort to Record/Playback? If so, what am I missing?