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

Adora Nwodo

Senior Software Engineer & Multi-Published Author

Ahmet Faruk Ulu

Software Developer at Volosoft

Alberto Acerbis

Passionate dev, Author, Learner

Alexej Sommer

Lead Software Engineer at Capgemini

Aman Sharma

Senior Software Developer at WAi Technologies

Brian Gorman

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

Cecil Phillip

Developer Advocate at Stripe

Dino Esposito

CTO at Crionet

Engincan Veske

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

Ferdinando Santacroce

Uncovering Better Ways of Developing Software and Organizations

Halil Ibrahim Kalkan

Co-Founder of Volosoft

Hannes Lowette

Microsoft MVP, Head of Learning & Development at Axxes

Irina Scurtu

Microsoft MVP, Software Architect at Dsi Solutions

Jamie Taylor

.NET developer at RJJ Software LTD

Jessica Engström

Passionate People Centric Technologist

Jimmy Engström

Microsoft MVP

Johan Smarius

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

Juergen Gutsch

Software Engineer at the YOO AG

Kaushik Gokhale

Senior Software Developer at WAi Technologies

Mitchel Sellers

Founder/CEO/Director of Development at IowaComputerGurus Inc.

Nicola Iarocci

Software Craftsman at CIR 2000

Omkar Choudhari

CTO at WAi Technologies

Rebai Hamida

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

Ryan Niño Dizon

Software Development Lead at ISD Feniqs

Sergei Gorlovetsky

CTO at Decision Tree Technology

Shaun Lawrence

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

Stefan Pölz

Clean C# Coder – Test-driven .NET Developer

Todd Gardner

CEO and Founder at TrackJS and Request Metrics