If you need to test drive with a database you can find a lot of problems. The basics of test drive with database is using a database sandbox, and creating a series of scripts that takes the database in a well known state before the run of each test. In my projects I use NHibernate [...]
Previous Posts: Part 1 – Basic of IoC unity container Part 2 – Basic of resolving dependencies and configure objects. Part 3 – AOP with Policy Injection Application Block In this fourth part I’ll examine how to build a simple custom handler that will be used with Policy Injection Application Block. The purpose of the [...]
Continue reading about Custom Handler to use with Policy Injection Application Block
This is the third on a series of post I’m doing while exploring the Unity IoC container. Part 1 – Basic of IoC unity container Part 2 – Basic of resolving dependencies and configure objects. Now it is time of AOP and using Policy Injection Application Block. AOP it is a very interesting technique, used [...]
Continue reading about Unity, policy injection application block and AOP
Yesterday I give a look at unity, an Inversion Of Control container made by Microsoft, today I’m experimenting a little more to have more confidence with it. An IoC container not only permits to resolve a concrete entity, but it also permits you to configure it. Here is how you can set a simple property [...]
I use Castle.Windsor for IoC, and sometimes I used Spring; those two are really enough to cover all IoC problems I had in the past. I do no like very much Enterprise Library but in some situation customers does not like open source code, and ask you to use only MS product, so it is [...]
