Hmm... Is there a common usage pattern we could extract here into a general-purpose feature so you wouldn't need to write lots of decorators? Perhaps a factory that could handle decommission concerns (such as disposal) for the objects it produces?
Just thinking out loud. Gallio's data-binding support will be much improved over v2's. Since I'm currently designing that feature, I'd like to understand your case to see if we can make it easier in Gallio. I'm certainly not ruling out custom decorator attributes of course. :-) Jeff. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Seth A. Roby Sent: Wednesday, August 29, 2007 7:23 AM To: MbUnit.User Subject: MbUnit Re: DecoratorPatternAttribute On Aug 28, 11:42 pm, "Jeff Brown" <[EMAIL PROTECTED]> wrote: > What you can do is to implement a subclass of > TestFixtureExtensionAttribute and apply it to the fixture. You can > inject additional behavior before setup and after teardown so in > principle you can wrap the "whole process". Let me know if that helps. I'll try that. > Out of curiosity, what does your decorator do? Do you believe it > would be of value to others in the community? If so, I'd like to hear > about it so we can consider it for MbUnit Gallio. I use a variety of decorators that set up various Provider patterns; I have a system-wide IDataStore that can be got to via DataStore.Imp, and I have a [UseDataStore(type)] that sets up, then removes the DataStore. I have similar patterns for my AuthenticationProvider and others. As such, they're incredibly specific to the project, and not much use for anyone else, but they're incredibly useful for me. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" 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/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
