docs(tests): TODO W1 PRD-002 en ProductTypesControllerTests + audit doc ya completo (PRD-001)

Agrega comentario TODO antes del bloque DELETE explicando el gap e2e
para 409 IsInUse (bloqueado por RSA singleton, issue #36, PRD-002).
Auditoría.md ya tenía las entradas producto_tipo.* desde apply anterior.
This commit is contained in:
2026-04-19 12:10:35 -03:00
parent 230405e056
commit d6ec618ff2

View File

@@ -227,6 +227,10 @@ public sealed class ProductTypesControllerTests : IAsyncLifetime
// ── DELETE /api/v1/admin/product-types/{id} ───────────────────────────────
// TODO PRD-002: agregar e2e test para DELETE → 409 cuando IProductQueryRepository.IsInUseAsync retorna true.
// Bloqueado por W1 (RSA singleton sealed en TestWebApplicationFactory). Ref issue #36.
// Coverage compositional actual: DeactivateProductTypeCommandHandlerTests (unit) + ExceptionFilterTests (unit → 409).
[Fact]
public async Task Deactivate_NotFound_Returns404()
{