-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
In this section, we'll cover testing strategies tailored specifically for the Persistence layer of our Clean Architecture application. As we explore this topic, we'll introduce essential tools such as Docker, Testcontainers, and Respawn, which play a crucial role in enhancing the efficiency and effectiveness of our testing process.
Before diving into individual test types and tools, the following table provides a high-level overview of what is tested, which tools are used, and why each test exists. This serves as a quick reference as you move through the remainder of the section.
|
Test Area |
Test Type |
Tools Used |
Purpose |
|
Mapping configuration |
Unit |
AutoMapper, FluentAssertions, AutoFixture |
Validate that domain and persistence models map correctly in both directions and that mappings reflect intended boundaries |
|
Mapping constraints |
Unit |
AutoMapper |
Ensure mapping rules (ignored properties, constructors, collections)... |