Improve Tests with the Builder Pattern for Test Data

added by DotNetKicks
2/2/2018 7:30:24 PM


I recently wrote about an example where I was able to apply the Builder Design Pattern to an Angular/TypeScript service. Another area where I've been finding the pattern helpful is in unit tests. Last year, I learned about this technique from Kenneth Truyers' blog post, and I've been using it to good effect for several months now on a few different projects.