Unit, integration, end-to-end tests: do I need all of them?

Yes. I mean, don’t even think about it. You’ll need all of them, probably in different measures, but there is no “we shipped to production without tests”. Tests are the first rampart separating you from madness and failure. Why madness? Try to do even a small refactoring after you’ve deployed your app. Without automatic tests […]

Categories: Programming, Ramblings, Software Architecture, Testing

Unit testing MongoDB in C# part 3: the database factories

Welcome to the third article of the series! Last time I was talking about the database context and at how I injected a Factory to create the repositories. Of course we could have injected every single repository in the cTor, but this way adding a new collection to the database would force too many changes. Injecting just the […]

Categories: .NET, MongoDB, Programming, Software Architecture, Testing

© 2020 Davide Guida

Theme by Anders NorenUp ↑