Press enter to see results or esc to cancel.

Meta avatar Hadi Eskandari in Windsor IoC   24 October 2010

Typed-Factories in Castle Windsor

One of the great features of Castle Windsor container is the ability to use typed-factories. Basically typed factories act like object factories that use container to create the objects for you, but additionally they let your application decouple from the container implementation.

Continue reading
Meta avatar Hadi Eskandari in MembershipProvider IoC   02 October 2010

Injecting MembershipProvider

Creating a new project on top of existing API is always a challenge. The problem we faced the other day was how strange our legacy MembershipProvider behaved when integrated in our new project that used IoC containers.

Continue reading
Meta avatar Hadi Eskandari in UnitTest   17 September 2010

Linq2SQL and Repository Pattern: Unit Testing

In previous part we saw how to implement a Repository pattern over Linq2SQL. Let's see in more detail how we can test this. If you are not new to unit testing and mocking, feel free to skip.

Continue reading
Meta avatar Hadi Eskandari in Linq Linq2Sql   17 September 2010

Linq2SQL and Repository Pattern

In a recent project, we were requested to create a new web application that worked on an existing data model that was created using Linq2SQL and .NET Framework 3.5 SP1. We were asked to use best practices and tools of the trade in the new application.

Continue reading
Meta avatar Hadi Eskandari in WPF   11 September 2010

Handling Focus in WPF

On my WPF course someone asked how we could move the focus to the next control on the page when the enter key is pressed on a textbox. Let's suppose we have a data entry form which mostly is consisted of TextBox (or alike) controls.

Continue reading