Tag Archives: Castle

MVC3, Entity Framework, jQuery… Everything example

How would you like to have a project that has these features? Dependency Injection Entity Framework 4.0 with POCO Inversion of Control with Castle The IResult jQuery jQuery Ajax Posts jQuery Custom Css jQuery Validation Mocking with Rhino Mocks MVC 3/Razor MVC Annotation Based Validation What I call the Repository Pattern Unit Tests – Integration [...]

Leave a comment Continue Reading →

How to Use a Factory Method With Castle / WindsorContainer

In my last post, I showed you the wonder of the WindsorContainer and creating concrete objects from a config file… but I wasn’t done yet. In fact, if you looked at my example and used your keen sense of observation (I’m suspending my disbelief) you might have noticed a little somethin’ somethin’ in the config [...]

Leave a comment Continue Reading →

Castle, Rhino, Mocking, and Possibly You

So here’s the issue, you have a class that you new up within a class. class SomeClass { private HelperClass someHelperClass; public SomeClass() { someHelperClass = new HelperClass(); } public String DoSomething() { return someHelperClass.DoSomeThing(); } } You with me? Cause if you’re not, you’ve probably made a serious error in career choice. Now what’s [...]

Leave a comment Continue Reading →