Yeah, it worked. I originally didn't have the "ReplayAll" and got an error on the VerifyAllExpecations about the repository still being in a record state. Once I added the ReplayAll, it worked fine (and it throws the appropriate exception if IFoo.Foo or IDisposable.Dispose are not called in DoSomething).
--- Patrick Steele http://weblogs.asp.net/psteele On Tue, May 18, 2010 at 1:25 PM, Tim Barcz <[email protected]> wrote: > Did that work? Wondering about how this would work with the joining of AAA > and Record/Replay. > > > > On Tue, May 18, 2010 at 12:22 PM, Patrick Steele <[email protected]> > wrote: >> >> I think StrictMultiMock will work in this case. Here's a quick example I >> tried: >> >> http://pastebin.com/8TS4tEpZ >> >> --- >> Patrick Steele >> http://weblogs.asp.net/psteele >> >> >> On Tue, May 18, 2010 at 11:25 AM, Adriano Labate >> <[email protected]> wrote: >> > Hello, >> > >> > I can't find how to create a mock for a class implementing two >> > interfaces with the new AAA model in version 3.5. >> > >> > Before 3.5, I called: CreateMultiMock<IFirstInterface>(typeof >> > (ISecondInterface)) >> > >> > Could I call this method when using the AAA model, or is there another >> > way to get the same result? >> > >> > Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Rhino.Mocks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rhinomocks?hl=en. >> > > > > -- > Tim Barcz > Microsoft C# MVP > Microsoft ASPInsider > http://timbarcz.devlicio.us > http://www.twitter.com/timbarcz > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
