Thursday, December 25, 2014

C#: Using Microsoft Unity dependency injection in Unit Tests

After working with Ninject and Windsor for a while I finally faced Microsoft Unity dependency injection container. And here is the way to build up an infrastructure for Unity container to use it for example in Unit tests.

Friday, December 12, 2014

MSSQL: Synonyms, Post Deployment scripts and Database Project.

MSSQL Synonyms allow to create proxy tables in one database for another database so we can query tables from both databases and even make joins between them. Obviously it can be done via cross-database queries, however sometimes second database is on the remote server and it is useful to have synonym for it in your database.

Thursday, December 4, 2014

MSMQ reading and writing

MSMQ is a message queue implementation by Microsoft, which allows different applications to communicate with each other quite reliable. MSMQ supports sending objects and streams, does not require any additional software. However, it doesn't have embedded subscriber (or any bus management) implementation. We used MSMQ for logging, in order to reduce database load. So we needed a reliable way of reading from / writing to MSMQ. Let’s see how it can be done.