What problem does it solve?
Ensures .NET/C# code in your solution adheres to established best practices, improving maintainability, readability, and reliability.
Core Features & Use Cases
- Documentation & Structure: enforce XML documentation comments for all public classes, interfaces, methods, and properties; include parameter and return value descriptions; maintain a consistent namespace structure (Core|Console|App|Service).
- Design Patterns & Architecture: promote primary constructor syntax for DI, Command Handler patterns with generic base classes, interface segregation, and factory patterns.
- Dependency Injection & Services: enforce constructor DI with null checks, proper service lifetimes (Singleton/Scoped/Transient), and testable service interfaces.
- Testing Standards: align with MSTest/FluentAssertions, apply AAA, use Moq, test success and failure scenarios, and validate null parameters.
- Other Pragmatic Practices: resource management (ResourceManager usage), async/await patterns, configuration with strongly-typed settings, error handling with structured logging, and secure coding practices.
Quick Start
Run a targeted refactor pass to align the solution with the listed .NET best-practices guidelines.