Add TagOverride CRUD

This commit is contained in:
Oscar Morales
2025-08-05 12:31:51 -06:00
parent a63a351b84
commit 85e186396d
18 changed files with 635 additions and 5 deletions

View File

@@ -15,6 +15,11 @@ using Core.Inventory.Application.UseCases.Tag.Adapter;
using Core.Inventory.Application.UseCases.Tag.Input;
using Core.Inventory.Application.UseCases.Tag.Ports;
using Core.Inventory.Application.UseCases.Tag.Validator;
using Core.Inventory.Application.UseCases.TagOverride;
using Core.Inventory.Application.UseCases.TagOverride.Adapter;
using Core.Inventory.Application.UseCases.TagOverride.Input;
using Core.Inventory.Application.UseCases.TagOverride.Ports;
using Core.Inventory.Application.UseCases.TagOverride.Validator;
using Core.Inventory.Application.UseCases.TagType;
using Core.Inventory.Application.UseCases.TagType.Adapter;
using Core.Inventory.Application.UseCases.TagType.Input;
@@ -132,6 +137,30 @@ namespace Core.Inventory.Service.API.Extensions
#endregion
#region TagOverride Services
services.AddScoped<ITagOverridePort, TagOverridePort>();
services.AddScoped<IComponentHandler<GetAllTagOverridesRequest>, TagOverrideHandler>();
services.AddScoped<IComponentHandler<GetTagOverrideRequest>, TagOverrideHandler>();
services.AddValidatorsFromAssemblyContaining<GetAllTagOverridesByListValidator>();
services.AddScoped<IValidator<GetAllTagOverridesByListRequest>, GetAllTagOverridesByListValidator>();
services.AddScoped<IComponentHandler<GetAllTagOverridesByListRequest>, TagOverrideHandler>();
services.AddValidatorsFromAssemblyContaining<CreateTagOverrideValidator>();
services.AddScoped<IValidator<CreateTagOverrideRequest>, CreateTagOverrideValidator>();
services.AddScoped<IComponentHandler<CreateTagOverrideRequest>, TagOverrideHandler>();
services.AddValidatorsFromAssemblyContaining<UpdateTagOverrideValidator>();
services.AddScoped<IValidator<UpdateTagOverrideRequest>, UpdateTagOverrideValidator>();
services.AddScoped<IComponentHandler<UpdateTagOverrideRequest>, TagOverrideHandler>();
services.AddValidatorsFromAssemblyContaining<ChangeTagOverrideStatusValidator>();
services.AddScoped<IValidator<ChangeTagOverrideStatusRequest>, ChangeTagOverrideStatusValidator>();
services.AddScoped<IComponentHandler<ChangeTagOverrideStatusRequest>, TagOverrideHandler>();
#endregion
#region Product Services
services.AddScoped<IProductPort, ProductPort>();