Monthly Archives: September 2008

Enumerating Registered Components in Windsor

Today I had occasion to want to know what’s in my IoC container (mine being Castle Windsor). I poked and prodded to no avail, and finally ended up asking the Castle Project Users Google Group. The illustrious Hammet replied pointing … Continue reading

Posted in Development | Tagged , | Leave a comment

Mocking Out RedirectToReferrer in Castle MonoRail

GRRRRRRRRRR! In my version of the trunk I’m working against, r5299, I had to do this to mock out RedirectToReferrer. I think it’s been changed in recent commits, I’m not sure. [TestFixture] public class LoginControllerTests : GenericBaseControllerTest<LoginController> { private string … Continue reading

Posted in Development | Tagged , , , | Leave a comment

With.Timeout

So Tim Erickson and I have been going round and round on Twitter about how to add a generic Timeout mechanism to procedure calls. Tim wants to wrap a using block in some sort of dark CLR magicks involving things … Continue reading

Posted in Development | Tagged , | Leave a comment

import Rhino.Commons from Rhino.Commons

Holy Frakin’ Frakity Frak! Perhaps it’s my own fault for using Binsor without being familiar with Boo, but I just ran into a doozy of a PITA. I was trying to add an ThreadSafeQueue from Rhino.Commons into my container, but … Continue reading

Posted in Development | Tagged , , | Leave a comment

StackOverflow – Now With More Heroin

Oh you tricksy hobbitses! I had largely ignored StackOverflow, not because I didn’t think it could be really cool, but because I just didn’t have time. I logged in this morning, and someone asked a question about ticket tracking, and … Continue reading

Posted in Development | Tagged , , , | Leave a comment

MonoRail Root Directory Routing + RoutingModuleEx

This crap is so under-documented. It took me forever to figure it out. I love the CastleProject. But damn… documentation… the hell? If you want http://www.yourdomain.com/ to default to say “/Home/Index.castle”, then this is how I did it. I had … Continue reading

Posted in Development | Tagged , , , | 5 Comments

Bogard’s IOC Container Guidelines

Jimmy Bogard just posted some “Guidelines” (shhh… don’t say “Best Practices”) for using IOC Containers on his blog. This type of information is *sorely* lacking, and I am tickled pink about his blog post. It’s stuff that I had to … Continue reading

Posted in Development | Leave a comment

Castle ActiveRecord: ValidateIsUnique Vs. Testing

In my Castle ActiveRecord project, I want to use the ValidateIsUnique attribute, but that means when testing my models I have to have bring up the entire database and initialize Castle ActiveRecord etc. even when I’m not testing my persistence … Continue reading

Posted in Development | Leave a comment