Testing the integration with a database the right way - introduction to Testcontainers

Persisting data in a database is one of the most common tasks that applications have to perform, and it’s so crucial that without it the rest of the app is often useless. It’s also an area that’s notoriously hard to test. In this blog post, you can read about several ways of doing it and some problems they come with. Finally, I’m going to share with you how I use Testcontainers to test the integration with a database and why I think it’s the best way to do it....

December 4, 2022 · 7 min · redzimski.dev

More readable Entity Framework Core queries with LINQKit

Recently I’ve completed a task that required writing a complex query in Entity Framework Core. After completing said tasked I’ve decided to marvel at my creation and saw, that there’s not much to marvel at - it did the job, but it wasn’t very readable. I already felt pity for the poor soul that has to understand it, or even worse, modify it - especially because more than likely it’d be me, after I’ve long forgotten the monstrosity I created....

November 19, 2022 · 5 min · redzimski.dev