From d6ec618ff219986cc7d72cce22fc95004633e537 Mon Sep 17 00:00:00 2001 From: dmolinari Date: Sun, 19 Apr 2026 12:10:35 -0300 Subject: [PATCH] docs(tests): TODO W1 PRD-002 en ProductTypesControllerTests + audit doc ya completo (PRD-001) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../ProductTypes/ProductTypesControllerTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/SIGCM2.Api.Tests/ProductTypes/ProductTypesControllerTests.cs b/tests/SIGCM2.Api.Tests/ProductTypes/ProductTypesControllerTests.cs index f8104cf..8ddc743 100644 --- a/tests/SIGCM2.Api.Tests/ProductTypes/ProductTypesControllerTests.cs +++ b/tests/SIGCM2.Api.Tests/ProductTypes/ProductTypesControllerTests.cs @@ -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() {