Wojciech Krasa

Full Stack Developer at HeadChannel
Workshop

Testing framework with PostgreSQL and Testcontainers for .NET

Speaker's Biography

Wojciech Krasa is a Senior .NET Developer at HeadChannel. He has over 12 years of experience as a developer focused on application development using .NET, and Azure.

He has a wide variety of skills and is always open to learning new things. He is an ABP enthusiast. In his free time, he enjoys cycling, hiking, and playing with his daughter.

Workshop Abstract

Writing tests is usually not the most pleasant thing in the world. In many projects, it is neglected or even avoided. We would like to present an approach that made writing tests slightly more friendly.

We created a small and simple testing framework based on PostgreSQL, Docker, Testcontainers for .NET, and ABP. I will present how the database is created, how the data seeding process works, and how we manage database lifetime (one database per test, multiple databases per docker image).

On top of that, I will describe concepts of UOW and user permissions in tests.

The important part of testing is creating and maintaining our test data, which is reusable and can be shared in multiple tests.

Finally, I will show how to utilize all of that in tests.

Our Speakers

Alexej Sommer

Lead Software Engineer at Capgemini

Rebai Hamida

Microsoft MVP and MCT, Docker Captain, Cloud Solutions Architect, Speaker, Author

Adora Nwodo

Senior Software Engineer & Multi-Published Author

Halil Ibrahim Kalkan

Co-Founder of Volosoft

Engincan Veske

Software Engineer at Volosoft. Core team member of ABP Framework.

Sergei Gorlovetsky

CTO at Decision Tree Technology

Jamie Taylor

.NET developer at RJJ Software LTD

Juergen Gutsch

Software Engineer at the YOO AG

Mitchel Sellers

Founder/CEO/Director of Development at IowaComputerGurus Inc.

Irina Scurtu

Microsoft MVP, Software Architect at Dsi Solutions

Nicola Iarocci

Software Craftsman at CIR 2000

Todd Gardner

CEO and Founder at TrackJS and Request Metrics

Dino Esposito

CTO at Crionet

Cecil Phillip

Developer Advocate at Stripe

Brian Gorman

Microsoft Azure MVP, Speaker, Author, Trainer and .NET Developer

Jimmy Engström

Microsoft MVP

Jessica Engström

Passionate People Centric Technologist

Shaun Lawrence

Senior Software Engineer working in all things .NET at Tinysoft Ltd

Ryan Niño Dizon

Software Development Lead at ISD Feniqs

Ahmet Faruk Ulu

Software Developer at Volosoft

Stefan Pölz

Clean C# Coder – Test-driven .NET Developer

Johan Smarius

Microsoft MVP on .NET and DevOps, Software Developer at JMAC Software Solutions

Omkar Choudhari

CTO at WAi Technologies

Kaushik Gokhale

Senior Software Developer at WAi Technologies

Alberto Acerbis

Passionate dev, Author, Learner

Ferdinando Santacroce

Uncovering Better Ways of Developing Software and Organizations

Aman Sharma

Senior Software Developer at WAi Technologies

Hannes Lowette

Microsoft MVP, Head of Learning & Development at Axxes