Sure. Tuna Toksöz Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Sun, May 31, 2009 at 1:06 AM, Tim Barcz <[email protected]> wrote: > Loosing battery power and heading to dinner at ChicagoCodeCamp....talk > later? > > > On Sat, May 30, 2009 at 4:59 PM, Tuna Toksoz <[email protected]> wrote: > >> I mean, can it wrap a session with an interface proxy? >> >> >> Tuna Toksöz >> Eternal sunshine of the open source mind. >> >> http://devlicio.us/blogs/tuna_toksoz >> http://tunatoksoz.com >> http://twitter.com/tehlike >> >> >> >> >> On Sun, May 31, 2009 at 12:58 AM, Tuna Toksoz <[email protected]> wrote: >> >>> Can RM create the Wrapped Session for me? I don't know if there is a >>> method for it. >>> >>> Tuna Toksöz >>> Eternal sunshine of the open source mind. >>> >>> http://devlicio.us/blogs/tuna_toksoz >>> http://tunatoksoz.com >>> http://twitter.com/tehlike >>> >>> >>> >>> >>> On Sun, May 31, 2009 at 12:57 AM, Tim Barcz <[email protected]> wrote: >>> >>>> Interesting ... >>>> >>>> can you swap out the session manager to return an instance of >>>> WrappedSession? If so I think you could do what you're looking for. >>>> >>>> Tim >>>> >>>> >>>> On Sat, May 30, 2009 at 4:50 PM, Tuna Toksoz <[email protected]> wrote: >>>> >>>>> This is not really NH but let me give a specific example >>>>> >>>>> >>>>> Assume I have >>>>> >>>>> ISession session=sessionFactory.OpenSession(); >>>>> ISession wrapped=mockRepository.WrapperMock(session); >>>>> >>>>> >>>>> I have some specific stuff that prevents Dispose() and my Repositorys >>>>> call the classic >>>>> using(ISession session=sessionManager.OpenSession()) >>>>> { >>>>> >>>>> } >>>>> >>>>> so I don't want it to be disposed. >>>>> >>>>> wrapped.Expect(x=>x.Dispose()).Do(delegate{}); >>>>> >>>>> I'm using NH Facility of Castle. >>>>> >>>>> >>>>> Tuna Toksöz >>>>> Eternal sunshine of the open source mind. >>>>> >>>>> http://devlicio.us/blogs/tuna_toksoz >>>>> http://tunatoksoz.com >>>>> http://twitter.com/tehlike >>>>> >>>>> >>>>> >>>>> >>>>> On Sun, May 31, 2009 at 12:46 AM, Tim Barcz <[email protected]>wrote: >>>>> >>>>>> I know you're talking about NHibernate so shoot some specifics and >>>>>> we'll see what we can come up with together. >>>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
