Demystifying The Code

Using the Builder Pattern in tests

One of the most painful parts of writing tests is creating test data.  Whether you use mocking frameworks or write your own fakes, one thing is constant… you will find yourself creating object instances over and over.  You have to create inputs to the methods you are testing, return values for stubs or mocks, data [...]

[ Read More → ]

Patterns-Based Silverlight Development – Part III – Pipeline Pattern

In yesterday’s post, I build our Repository interface and the implementation, as well as added some server-side validation, following a simple pattern.  I also added a test project and wrote some tests to test the our validation logic.  In this post I will implement the Pipeline pattern.  I will then implement a fake repository and use it to test our Pipeline.

[ Read More → ]

Patterns-Based Silverlight Development – Part II – Repository and Validation

Introduction
In this post I will provide a brief overview of the Repository pattern, implement a Repository in our sample application, establish our server-side validation and add our test project. 
 
Acknowledgements
Most of what you will see in this post follows very closely with the code ScottGu implemented in his NerdDinner tutorial.  In fact, I would highly [...]

[ Read More → ]

Demystifying The Code