feat(application): Product handlers + DI registration, fix permiso count to 27 (PRD-002)

This commit is contained in:
2026-04-19 13:07:59 -03:00
parent 8b555e1f8b
commit bb455be745
13 changed files with 1030 additions and 5 deletions

View File

@@ -173,17 +173,18 @@ public class RolPermisoRepositoryTests : IAsyncLifetime
// ── GetByRolCodigoAsync ──────────────────────────────────────────────────
[Fact]
public async Task GetByRolCodigoAsync_Admin_Returns26Permisos()
public async Task GetByRolCodigoAsync_Admin_Returns27Permisos()
{
// admin has 18 permisos from V006 + 3 new admin permisos from V007 (UDT-006)
// + 1 from V011 (ADM-001): 'administracion:secciones:gestionar'
// + 1 from V013 (ADM-008): 'administracion:puntos_de_venta:gestionar'
// + 1 from V014 (ADM-009): 'administracion:fiscal:gestionar'
// + 1 from V016 (CAT-001): 'catalogo:rubros:gestionar'
// + 1 from V017 (PRD-001): 'catalogo:tipos:gestionar' = 26 total
// + 1 from V017 (PRD-001): 'catalogo:tipos:gestionar'
// + 1 from V018 (PRD-002): 'catalogo:productos:gestionar' = 27 total
var permisos = await _repository.GetByRolCodigoAsync("admin");
Assert.Equal(26, permisos.Count);
Assert.Equal(27, permisos.Count);
}
[Fact]