Загрузка...

Stop Mocking Your Database! Use Testcontainers in .NET

Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt
Get the source code here: https://www.patreon.com/milanjovanovic

Learn how to properly set up your database for integration testing in .NET using TestContainers. We'll walk through applying database migrations to create your schema from scratch and seed it with test data - all running in an isolated Docker container. No more messing with mocks or fighting with shared test databases. This is a practical guide to getting your PostgreSQL database ready for proper integration testing.

EF Core Migrations: A Detailed Guide
https://www.milanjovanovic.tech/blog/efcore-migrations-a-detailed-guide

Check out my courses:
https://www.milanjovanovic.tech/courses

Read my Blog here:
https://www.milanjovanovic.tech/blog

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Chapters
0:00 Integration testing
2:19 Testcontainers and testing
6:02 DB Migrations at Startup
7:10 DB Migrations in Test
8:52 DB Migrations in Container
12:39 Seeding data for testing

Видео Stop Mocking Your Database! Use Testcontainers in .NET канала Milan Jovanović
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять