From the the Object Design Style Guide by Matthias Noback
In this article we’ll discuss all the relevant aspects of instantiating a service. You’ll learn how to deal with its dependencies, what you can and can’t do inside its constructor, and you should be able to instantiate it once and make it reusable many times.
From Unit Testing, Principles, Practices, and Patterns by Vladimir Khorikov
From Unit Testing, Principles, Practices, and Patterns by Vladimir Khorikov
In this article I’ll give you a refresher on some basic topics. I’ll go over the structure of a typical unit test, which is usually represented by the Arrange-Act-Assert pattern. I’ll also show the unit testing framework of my choice — xUnit — and explain why I’m using it and not one of its competitors.
From Unit Testing by Vladimir Khorikov
This part covers:
• The two schools of unit testing: classical and London
• The differences between unit, integration, and end-to-end tests
From Unit Testing: Principles, Practices, and Patterns by Vladimir Khorikov
This article covers: