This brought my attention too, what kind of unit testing do you write for the container?
Do you test is some service is properly registered or if a service could be properly resolved with all his dependencies...? Do you test lifestyle of your components? I want to be honest with you, I am not writing any code to test such thing, but as always I am really interested in learn what others do. 2010/9/23 Krzysztof Koźmic <[email protected]> > Dru, > > have a look at the doco: > http://stw.castleproject.org/Windsor.MainPage.ashx > especially first two elements in the using the container section. > > Also the following posts talk about certain aspects of how I use the > container > > http://kozmic.pl/archive/2010/06/20/how-i-use-inversion-of-control-containers.aspx > > http://kozmic.pl/archive/2010/06/22/how-i-use-inversion-of-control-containers-ndash-pulling-from.aspx > > http://kozmic.pl/archive/2010/08/10/ioc-patterns-ndash-partitioning-registration.aspx > > WRT facilities and installers - I use both - it's not either/or since they > fulfill different roles. > > Unit testing is a interesting topic and you just brought to my attention > that it's not covered at all in the doco. > I'll try to put together a page in the wiki or a blogpost (or both) about > it sometime soon. > > It's after midnight here, so I don't really feel like exploring the topic. > > I'm interested to hear what other people share here though. > > cheers, > Krzysztof > > > On 23/09/2010 11:59 PM, Dru Sellers wrote: > >> Are there any best practices for how to use the container in your >> application? >> >> Do you subclass windsor for your application, or do you put things in >> installers. >> Do you use installers or facilities >> Do you unit test your container? And if so what does that look like. >> >> Thoughts, >> -d >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Users" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<castle-project-users%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/castle-project-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
