diff --git a/tests/SIGCM2.Application.Tests/Infrastructure/RefreshTokenRepositoryTests.cs b/tests/SIGCM2.Application.Tests/Infrastructure/RefreshTokenRepositoryTests.cs index 17985bd..ad6b299 100644 --- a/tests/SIGCM2.Application.Tests/Infrastructure/RefreshTokenRepositoryTests.cs +++ b/tests/SIGCM2.Application.Tests/Infrastructure/RefreshTokenRepositoryTests.cs @@ -46,6 +46,11 @@ public class RefreshTokenRepositoryTests : IAsyncLifetime new Respawn.Graph.Table("dbo", "Seccion_History"), // ADM-008 (V013): PuntoDeVenta is temporal; SecuenciaComprobante is NOT temporal (AD8 revisitado). new Respawn.Graph.Table("dbo", "PuntoDeVenta_History"), + // ADM-009 (V014): TipoDeIva + IngresosBrutos son temporales. + new Respawn.Graph.Table("dbo", "TipoDeIva_History"), + new Respawn.Graph.Table("dbo", "IngresosBrutos_History"), + new Respawn.Graph.Table("dbo", "TipoDeIva"), + new Respawn.Graph.Table("dbo", "IngresosBrutos"), ] }); diff --git a/tests/SIGCM2.Application.Tests/Integration/PermisoRepositoryTests.cs b/tests/SIGCM2.Application.Tests/Integration/PermisoRepositoryTests.cs index 9368b0a..9d64583 100644 --- a/tests/SIGCM2.Application.Tests/Integration/PermisoRepositoryTests.cs +++ b/tests/SIGCM2.Application.Tests/Integration/PermisoRepositoryTests.cs @@ -74,14 +74,15 @@ public class PermisoRepositoryTests : IAsyncLifetime // ── ListAsync ──────────────────────────────────────────────────────────── [Fact] - public async Task ListAsync_Returns22CanonicalSeeds() + public async Task ListAsync_Returns23CanonicalSeeds() { var list = await _repository.ListAsync(); // V005 seeds 18 canonical permisos + V007 (UDT-006) adds 3 admin permisos // + V011 (ADM-001) adds 'administracion:secciones:gestionar' - // + V013 (ADM-008) adds 'administracion:puntos_de_venta:gestionar' = 23 total - Assert.Equal(23, list.Count); + // + V013 (ADM-008) adds 'administracion:puntos_de_venta:gestionar' + // + V014 (ADM-009) adds 'administracion:fiscal:gestionar' = 24 total + Assert.Equal(24, list.Count); } [Fact] diff --git a/tests/SIGCM2.Application.Tests/Integration/RolPermisoRepositoryTests.cs b/tests/SIGCM2.Application.Tests/Integration/RolPermisoRepositoryTests.cs index c19f126..0a90f50 100644 --- a/tests/SIGCM2.Application.Tests/Integration/RolPermisoRepositoryTests.cs +++ b/tests/SIGCM2.Application.Tests/Integration/RolPermisoRepositoryTests.cs @@ -174,14 +174,15 @@ public class RolPermisoRepositoryTests : IAsyncLifetime // ── GetByRolCodigoAsync ────────────────────────────────────────────────── [Fact] - public async Task GetByRolCodigoAsync_Admin_Returns22Permisos() + public async Task GetByRolCodigoAsync_Admin_Returns23Permisos() { // 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' = 23 total + // + 1 from V013 (ADM-008): 'administracion:puntos_de_venta:gestionar' + // + 1 from V014 (ADM-009): 'administracion:fiscal:gestionar' = 24 total var permisos = await _repository.GetByRolCodigoAsync("admin"); - Assert.Equal(23, permisos.Count); + Assert.Equal(24, permisos.Count); } [Fact] diff --git a/tests/SIGCM2.Application.Tests/Integration/UsuarioRepositoryTests.cs b/tests/SIGCM2.Application.Tests/Integration/UsuarioRepositoryTests.cs index a29c343..bb35e14 100644 --- a/tests/SIGCM2.Application.Tests/Integration/UsuarioRepositoryTests.cs +++ b/tests/SIGCM2.Application.Tests/Integration/UsuarioRepositoryTests.cs @@ -38,6 +38,11 @@ public class UsuarioRepositoryTests : IAsyncLifetime new Respawn.Graph.Table("dbo", "Seccion_History"), // ADM-008 (V013): PuntoDeVenta is temporal; SecuenciaComprobante is NOT temporal (AD8 revisitado). new Respawn.Graph.Table("dbo", "PuntoDeVenta_History"), + // ADM-009 (V014): TipoDeIva + IngresosBrutos son temporales. + new Respawn.Graph.Table("dbo", "TipoDeIva_History"), + new Respawn.Graph.Table("dbo", "IngresosBrutos_History"), + new Respawn.Graph.Table("dbo", "TipoDeIva"), + new Respawn.Graph.Table("dbo", "IngresosBrutos"), ] }); diff --git a/tests/SIGCM2.Application.Tests/Integration/UsuarioRepository_PermisosTests.cs b/tests/SIGCM2.Application.Tests/Integration/UsuarioRepository_PermisosTests.cs index 2605114..ed0186d 100644 --- a/tests/SIGCM2.Application.Tests/Integration/UsuarioRepository_PermisosTests.cs +++ b/tests/SIGCM2.Application.Tests/Integration/UsuarioRepository_PermisosTests.cs @@ -42,6 +42,11 @@ public sealed class UsuarioRepository_PermisosTests : IAsyncLifetime new Respawn.Graph.Table("dbo", "Seccion_History"), // ADM-008 (V013): PuntoDeVenta is temporal; SecuenciaComprobante is NOT temporal (AD8 revisitado). new Respawn.Graph.Table("dbo", "PuntoDeVenta_History"), + // ADM-009 (V014): TipoDeIva + IngresosBrutos son temporales. + new Respawn.Graph.Table("dbo", "TipoDeIva_History"), + new Respawn.Graph.Table("dbo", "IngresosBrutos_History"), + new Respawn.Graph.Table("dbo", "TipoDeIva"), + new Respawn.Graph.Table("dbo", "IngresosBrutos"), ] }); diff --git a/tests/SIGCM2.Application.Tests/Integration/V009MigrationTests.cs b/tests/SIGCM2.Application.Tests/Integration/V009MigrationTests.cs index 52d2ded..530e4e2 100644 --- a/tests/SIGCM2.Application.Tests/Integration/V009MigrationTests.cs +++ b/tests/SIGCM2.Application.Tests/Integration/V009MigrationTests.cs @@ -41,6 +41,11 @@ public sealed class V009MigrationTests : IAsyncLifetime new Respawn.Graph.Table("dbo", "Seccion_History"), // ADM-008 (V013): PuntoDeVenta is temporal; SecuenciaComprobante is NOT temporal (AD8 revisitado). new Respawn.Graph.Table("dbo", "PuntoDeVenta_History"), + // ADM-009 (V014): TipoDeIva + IngresosBrutos son temporales. + new Respawn.Graph.Table("dbo", "TipoDeIva_History"), + new Respawn.Graph.Table("dbo", "IngresosBrutos_History"), + new Respawn.Graph.Table("dbo", "TipoDeIva"), + new Respawn.Graph.Table("dbo", "IngresosBrutos"), ] }); diff --git a/tests/SIGCM2.Application.Tests/Medios/MedioRepositoryTests.cs b/tests/SIGCM2.Application.Tests/Medios/MedioRepositoryTests.cs index 0403e2b..3a7dafd 100644 --- a/tests/SIGCM2.Application.Tests/Medios/MedioRepositoryTests.cs +++ b/tests/SIGCM2.Application.Tests/Medios/MedioRepositoryTests.cs @@ -44,6 +44,11 @@ public class MedioRepositoryTests : IAsyncLifetime new Respawn.Graph.Table("dbo", "Seccion_History"), // ADM-008 (V013): PuntoDeVenta is temporal; SecuenciaComprobante is NOT temporal (AD8 revisitado). new Respawn.Graph.Table("dbo", "PuntoDeVenta_History"), + // ADM-009 (V014): TipoDeIva + IngresosBrutos son temporales. + new Respawn.Graph.Table("dbo", "TipoDeIva_History"), + new Respawn.Graph.Table("dbo", "IngresosBrutos_History"), + new Respawn.Graph.Table("dbo", "TipoDeIva"), + new Respawn.Graph.Table("dbo", "IngresosBrutos"), ] }); diff --git a/tests/SIGCM2.Application.Tests/Secciones/SeccionRepositoryTests.cs b/tests/SIGCM2.Application.Tests/Secciones/SeccionRepositoryTests.cs index b0c298e..5f7a000 100644 --- a/tests/SIGCM2.Application.Tests/Secciones/SeccionRepositoryTests.cs +++ b/tests/SIGCM2.Application.Tests/Secciones/SeccionRepositoryTests.cs @@ -45,6 +45,11 @@ public class SeccionRepositoryTests : IAsyncLifetime new Respawn.Graph.Table("dbo", "Medio_History"), new Respawn.Graph.Table("dbo", "Seccion_History"), new Respawn.Graph.Table("dbo", "PuntoDeVenta_History"), + // ADM-009 (V014): TipoDeIva + IngresosBrutos son temporales. + new Respawn.Graph.Table("dbo", "TipoDeIva_History"), + new Respawn.Graph.Table("dbo", "IngresosBrutos_History"), + new Respawn.Graph.Table("dbo", "TipoDeIva"), + new Respawn.Graph.Table("dbo", "IngresosBrutos"), ] });