Skip to content
Back to skills

Backend Testing

ASecurity

Use when writing or fixing tests for the .NET backend, or when the Backend check is red.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 18, 2026
ai-agentstestingapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add erumkatzwan/agentic-product-starter --skill backend-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backend Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backend Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erumkatzwan-backend-testing/badge)](https://www.skillsdirectory.com/skills/erumkatzwan-backend-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: backend-testing
description: Use when writing or fixing tests for the .NET backend, or when the Backend check is red.
---

# Backend testing

| Layer | Where | How |
|---|---|---|
| Unit | `tests/.../AccountServiceTests.cs` style | New up the service with `InMemoryUserRepository` |
| Integration | `tests/.../*ApiTests.cs` | `new ApiFactory()` runs the whole API in memory as SYST with seeded accounts |

## Rules

- One `ApiFactory` per test class instance, so tests never share data.
- Sign in with `SignedInClientAsync(ApiFactory.AdminEmail, ApiFactory.AdminPassword)` or `SignedUpClientAsync(...)`.
- Assert status codes and response bodies; test the unhappy paths (400, 401, 403, 404, 409).
- Coverage of `AgenticProduct.Api` must stay at or above 70% (`scripts/check-coverage.py`).

## When the check is red

- Format: run `dotnet format`.
- Build: fix every warning; they fail the build.
- Tests: run `dotnet test` locally; the failing test name tells you the endpoint.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.