Archive

Archive for August, 2011

Distributed Event Broker – Scoping, identification and serializers

August 29th, 2011
Daniel Marbach

In my last post I gave an introduction to the nuts and bolts of the distributed event broker. In this post we are going even deeper into some of the customization possibilities the distributed event broker offers. I want to cover the following topics: Scoping, identification and serializers.

read more

 

.NET , ,

Distributed Event Broker – Introduction

August 26th, 2011
Daniel Marbach

In my last post you heard introductory details about the bbv.Common.EventBroker. Let us take this one step further. Imagine going from one process to multiple processes or even firing events over multiple machines. And all this with your existing event broker and with only a few lines of code. Too good to be true? I can assure you it is possible! Let’s dive into the distributed event broker.

read more

 

.NET , ,

Refactoring in Test Driven Development

August 23rd, 2011
Urs Enzler

cross-post from www.bbv.ch/blog

In the last two years I gave over a dozen courses and presentations about test driven development (TDD). One question, I get asked almost every time, is how to refactor code while keeping up the TDD rules:

  • write only production code if there is a failing test requesting it
  • have no more that one failing test at once

read more

 

Test Driven Development ,

Why I like Ninject for Acceptance Testing (.NET Dependency Injection Container)

August 22nd, 2011
Urs Enzler

Lately, I wrote quite a lot of acceptance tests. I simulate that the application is started-up and perform all features requested by our customer to make sure that they work as expected. In order to make these tests fast so that they can be run on every commit to the version control system, I simulate all interaction with the environment of the application: views, database, file system, registry, share point and so on.

To get the most out of these acceptance tests, I want to fake as little as possible. And here comes the Rebind feature of Ninject into play. I can bootstrap the application as in production and then replace all components interacting with the environment by simple calls to Rebind.

read more

 

.NET, Why I like ... , ,

Event Broker – Introduction

August 22nd, 2011
Daniel Marbach

Some of you might already be familiar with the bbv.Common.EventBroker. For those who aren’t I want to give a quick overview of the bbv.Common.EventBroker because knowledge about the event broker is crucial for my future posts about the distributed event broker.

The event broker acts as a mediator between a publisher of notifications (aka publisher) and a consumer of notifications (aka subscriber). The event broker transparently integrates into the usage of classic .NET events by applying a set of attributes either to the publisher’s event or the subscribers event handler. The publisher and the subscriber don’t need to know each other during design time, they are wired up during run time.

read more

 

.NET , ,