Tag

dependency

Objects, Services, and Dependencies

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.

Making Better Unit Tests, Part 2: naming unit tests

From Unit Testing, Principles, Practices, and Patterns by Vladimir Khorikov

Making Better Unit Tests: part 1, the AAA pattern

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.

What is a Unit Test? Part 2: classical vs. London schools

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

What is a Unit Test? Part 1: an introduction

From Unit Testing: Principles, Practices, and Patterns by Vladimir Khorikov

This article covers:

  • Definition of a unit test
  • The differences between shared, private, and volatile dependencies
  • The two schools of unit testing: classical and London
  • The differences between unit, integration, and end-to-end tests

© 2020 Manning — Design Credits