unit-testing

Generate deterministic unit tests for .NET Clean Architecture Domain and Application layers.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/gerardogarnica/aurora-flowboard-api --skill unit-testing-gerardogarnica
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-testing
Source: https://github.com/gerardogarnica/aurora-flowboard-api/tree/main/.claude/skills/unit-testing
Command: npx skills add https://github.com/gerardogarnica/aurora-flowboard-api --skill unit-testing-gerardogarnica

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates deterministic unit tests for Domain and Application layers in a .NET Clean Architecture solution, enabling reliable validation of business rules and invariants without infrastructure dependencies.

Core Features & Use Cases

  • Generates tests for Domain: Entities, Value Objects, Domain Services, and Domain Events.
  • Generates tests for Application: Commands, Queries, Handlers, Validators, and Behaviors.
  • Supports deterministic data through static builders and data fixtures to ensure repeatable results across runs.

Quick Start

Create a test project skeleton and begin writing Domain and Application layer tests using the generated patterns.

Frequently Asked Questions about unit-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate deterministic unit tests for a .NET Clean Architecture Domain layer?

Generate deterministic unit tests for .NET Clean Architecture Domain layers by targeting entities, value objects, and domain services. This approach uses static builders and data fixtures to ensure repeatable results across runs without infrastructure dependencies.

What is the best way to unit test Application layer handlers and validators without infrastructure dependencies?

Unit testing Application layer handlers and validators without infrastructure dependencies requires strict isolation. Verify business rules via the Result pattern to ensure zero infrastructure coupling and deterministic test execution for commands and queries.

Does this unit testing strategy support CQRS commands and queries in a .NET project?

Yes, this unit testing strategy supports CQRS in .NET projects by generating tests for Application layer components. It covers commands, queries, handlers, validators, and behaviors to validate business rules deterministically.

How do I ensure repeatable unit test results for .NET domain services and domain events?

Ensure repeatable unit test results for .NET domain services and events by applying deterministic data generation. Using static builders and data fixtures guarantees that test runs produce consistent, reliable verification of invariants.

Can I verify business rules and invariants in .NET using the Result pattern?

Yes, you can verify business rules and invariants in .NET using the Result pattern. This testing strategy generates deterministic tests that validate strict isolation and business logic verification for Domain and Application layers.

When should I not use deterministic unit tests for .NET Domain and Application layers?

Avoid using deterministic unit tests for .NET Domain and Application layers when infrastructure dependencies are required. This approach enforces strict isolation and zero infrastructure dependencies, making it unsuitable for integration or end-to-end testing scenarios.