feat(infrastructure): ProductRepository + ProductQueryRepository, DI swap activates guard (PRD-002)

This commit is contained in:
2026-04-19 13:10:21 -03:00
parent bb455be745
commit 8c9a50504d
6 changed files with 361 additions and 7 deletions

View File

@@ -40,6 +40,9 @@ public static class DependencyInjection
services.AddScoped<IIngresosBrutosRepository, IngresosBrutosRepository>();
services.AddScoped<IRubroRepository, RubroRepository>();
services.AddScoped<IProductTypeRepository, ProductTypeRepository>();
services.AddScoped<IProductRepository, ProductRepository>();
// PRD-002: replaces NullProductQueryRepository from Application DI
services.AddScoped<IProductQueryRepository, ProductQueryRepository>();
// JWT Options — bound lazily via IOptions so tests can override via ConfigureWebHost
services.Configure<JwtOptions>(configuration.GetSection("Jwt"));