NBuilder

NBuilder

We have Object Mothers in Alpha that wrap up test data for the unit tests. This is fine up to a point but we needed to add a Builder pattern to supplement the Factory pattern so we could have easy generation of default + overridden data. A comment on a blog post lead to the excellent NBuilder project which we’re now using.

Advertisements