Last week I wrote about when to use mocks. In this post, I’d like to outline a specific guideline which comes into play when you start working with mocks: verifying collaborations at the system edges. This article is based on my recent Pluralsight course about Pragmatic Unit Testing.
In this post, I’ll show a simple way to get to know if your domain model is properly isolated.
In this post, we’ll discuss the Law of Demeter in the context of immutability.
Aggregates carry out many important functions. One of them is maintaining consistency boundaries. In this post, I write about the requirement of global email uniqueness and how it is related to aggregate invariants.
Validation and DDD can be a tricky combination. How to perform validation in a way that doesn’t lead to domain knowledge leakage?
In this post, we’ll take a look at domain services: what differs them from application services and when it is preferable to use one in addition to an application service.
I’ve been using the term “domain model isolation” for a long time already but just recently realized that its meaning might not be as obvious as I thought. In this post, I’ll try to describe what it means to properly isolate your domain model and why it is important.
In this post, I’ll write about a couple of thoughts regarding what domain logic is and how to distinguish it from other types of logic.