Buildadvanced
60 min
Write Real Integration Tests
Your products API has tests that mock the database. The problem: mocks passed even when the real migration was broken. Replace the mocked `IProductRepository` tests with integration tests that spin up a real SQL Server container, run migrations, and test the actual HTTP endpoints end-to-end.
Your progress0%
Requirements
Skills you'll use
.NETTestcontainersxUnitIntegration Testing
Read this first
This task is based on the lesson below. Complete the reading before attempting it.
Go to lessonWhat to expect
- Difficulty
- advanced
- Time
- 60 min
- Steps
- 6
- Type
- Build