# Test E2e Cs

> Criar testes E2E de API ASP.NET Core com WebApplicationFactory no projeto IntegrationTests. Usar quando o pedido envolver test:e2e, IntegrationTests ou fluxo HTTP completo em C#.

- Skill: `eskcti/test-e2e-cs` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add eskcti/test-e2e-cs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/eskcti/test-e2e-cs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: EskCti (https://skillmd.com/u/eskcti)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/eskcti/test-e2e-cs

---


# E2E Tests (C#)

## Overview

Testes E2E de API em `tests/<Project>.IntegrationTests/` usando `WebApplicationFactory<Program>`.

## Guidelines

- Ler `references/e2e-test-pattern-cs.md`.
- Projeto criado pelo `config-project-cs` — referenciar Backend.
- Fluxos críticos: POST criar → GET buscar.
- Unit tests ficam em `UnitTests` (`test-unit-cs`).

## Workflow

1. Identificar endpoints e payload da story.
2. Criar `*E2ETests.cs` em `tests/ProjectName.IntegrationTests/Api/`.
3. `dotnet test tests/ProjectName.IntegrationTests`.
4. CI executa após unit tests.

## References

- `references/e2e-test-pattern-cs.md`
- `../config-project-cs/SKILL.md`
- `../skills-standards.md`

## Global Standards

- Consultar `../skills-standards.md`.

