- C# Digest
- Posts
- Unit Testing Clean Architecture Use Cases
Unit Testing Clean Architecture Use Cases
Battle-tested approach to unit testing
Hello! 👋
We’re back after a short break and we’ll start migrating to a new email service provider in the next couple of weeks. Let me know if you find something that seems off and wish me luck.
Unit Testing Clean Architecture Use Cases
7 minutes by Milan Jovanović
Drawing from years of experience, Milan shares his battle-tested approach to unit testing Clean Architecture use cases in .NET, focusing on the critical balance between code coverage and test quality. Through practical examples and real-world scenarios, he'll demonstrate how to write effective tests that not only catch bugs but also provide confidence in your code deployments.
Using NBomber for Performance, Load and Stress testing
5 minutes by Abdul Rahman
This article discusses performance testing for web applications, focusing on using NBomber for ASP.NET Web API testing. It provides a comprehensive guide on how to set up and conduct load tests, explaining the importance of monitoring metrics like throughput, response times, and memory usage.
Using the Parallel Library to Boost Loop Performance
15 minutes by Rick Strahl
Rick shows how using the Parallel library in .NET can significantly optimize performance for certain operations, specifically describing a case where implementing Parallel.ForEachAsync() in Markdown Monster's link checker reduced processing time from 20+ seconds to 2.5 seconds with minimal code changes.
Linux process priorities for C# devs
12 minutes by Olivier Coanet
This article explains the differences and challenges of using thread and process priorities between Windows and Linux in .NET applications. On Windows, the .NET priority API works as expected, allowing both process and thread-level priority control. However, on Linux, the implementation is problematic: process priority only affects the main thread, thread priorities require special scheduling policies to work, and the entire API requires specific privileges.
Also, if you’d like your company to sponsor the newsletter don’t hesitate to reach out. There’s a few openings in Q1/2025.
Now, we'll have a look at the most read articles from 2024.
And we'll wrap up with the most read article from the last issue.
Happy New Year,
Jakub 🥳
how did you like this issue? |