In this blog post I want to illustrate how we can eager load child and parent objects inside memory using NHibernate and how to avoid the nasty problem of creating Cartesian products. I will show you how this can be achieved using the three different type of Query pattern implemented inside NHibernate. For this example Read More →

The Scenario I have an MTM 2013 installation that is configured in the following way: This is the workflow that is triggered when a Developer check-in something: The code is built by TFS 2013, using a TFS Build Agent The agent update a Nuget Package containing the deployed application Octopus release the package over our Read More →

image.png

With TFS we can have two different type of Build, local or remote. A remote build in triggered on a controller that doesn’t reside on your local PC. A local build is triggered on your local dev agent and it can also be “hidden” from the main queue build repository. The scenario My scenario is Read More →

image.png

In this article we will have a look at how we can automate the Octopus deployment using TFS build server. Every time a member of the team performs a check-in I want to execute a continuous build with the following workflow: The first step is to change the default build workflow in TFS. Usually I Read More →

image.png

Octopus is a deployment tool that use the Nuget packaging mechanism to pack your application and deploy it over multiple environments. Unfortunately it does not have a native support (yet) for Visual Studio Database project, so I had to provide a sort of workaround in my project structure to allow Octopus to deploy also a Read More →

image_thumb.png

When I talk about test with a collegue, a tech friend or anybody involved in Software Development, the conversation always ends up with a comparison between Unit Tests and Integration Tests. As far as I am aware of, I know four type of developers, the one that practices unit tests, the once that practices integration Read More →

Snapshot_thumb.png

This series is getting quite interesting so I decided to post something about Domain Model. Just a little introduction to understand what is and what is not Domain Model. Honestly this pattern is often misunderstood. I see tons of examples of anemic models that reflect 1:1 the database structure, mirroring the classic Active Record pattern. Read More →

image.png

When I work in a project that implies Business Logic and Behaviors I usually prefer to write my unit tests using a Behavioral approach, because in this way I can easily projects my acceptance criteria into readable piece of code. Right now I am already on Visual Studio 2013 and I am struggling a bit Read More →

Screen-Shot-2013-07-18-at-11.35.04-AM.png

I am always wondering where I was the day they distributed the Magic Wand. I mean, every time I join a new Team/Project I always have to carry with me a set of tools that make my job easier. Some of these tools are within Visual Studio, some are pre-defined architecture diagrams that I created Read More →

image.png

Around the web there is a lot of noise about “CQRS” and “Event sourcing”. Almost everybody involved in a layered application is now trying to see if CQRS can fit in its current platform. I also found some nice tutorial series about CQRS and some good explanation of event sourcing but what I didn’t see Read More →