net8-apirest-testing-unit

Community

Standardized unit testing for .NET 8 APIs.

Authorzeshone
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Unit testing standards for ASP.NET Core 8 REST APIs using xUnit, FluentAssertions, and NSubstitute (canonical). Covers Services, Validators, Mappings, and Domain Exceptions with AAA pattern, naming conventions, Test Data Builders, and mocking guidance.

Core Features & Use Cases

  • Establishes a consistent unit testing methodology for core API layers (Services, Validators, Mappings, Domain Exceptions) emphasizing AAA structure and clean test data via Builders.
  • Provides guidance on naming conventions, mocking strategies (NSubstitute canonical), and separation of concerns to avoid testing infrastructure.
  • Useful when starting new test projects or enhancing test quality, ensuring maintainable, readable tests aligned with .NET 8 APIs.

Quick Start

Adopt the conventions to scaffold a new unit test project and start applying the AAA pattern, test data builders, and NSubstitute-based mocks.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: net8-apirest-testing-unit
Download link: https://github.com/zeshone/zesh-one-skills/archive/main.zip#net8-apirest-testing-unit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.