Want to master Clean Architecture? Go here: Want to unlock Modular Monoliths? Go here: Get the source code here: In this practical walkthrough, I explore how AI can transform the often tedious process of writing unit tests for .NET applications. Starting with a tour of my semi-complex .NET project, I explain its real-world use cases and demonstrate some existing test implementations. The video reveals why providing AI (specifically using Cursor) with example tests dramatically improves its ability to generate high-quality unit tests that match your coding standards and patterns. Watch as I demonstrate the complete workflow - from generating unit tests for the Domain layer to troubleshooting and fixing AI-generated code errors, and finally running the successful tests in Visual Studio. We'll then extend the approach to the Application layer, showing how this technique can be applied across different parts of your architecture. Whether you're looking to reduce testing bottlenecks or improve your coverage, this step-by-step guide shows exactly how AI can become a valuable addition to your .NET development toolkit. Working with LLMs in .NET using Check out my courses: Read my Blog here: Join my weekly .NET newsletter: Chapters 0:00 My recommendations 2:53 Cursor and .cursorrules 3:42 Domain unit testing with Cursor 7:34 Reviewing AI-generated tests 9:09 Application layer unit tests











