- IMedioRepository, ISeccionRepository interfaces - MediosQuery, SeccionesQuery common records - TipoSeccion static AllowedTipos helper - Medios: 6 use cases (Create/Update/Deactivate/Reactivate/List/GetById) with validators, handlers and DTOs - Secciones: 6 use cases mirroring Medios; Create validates MedioId active via IMedioRepository - 52 unit tests (xUnit + NSubstitute) all green; audit LogAsync asserted per mutating handler - DI registrations for all 12 handlers and validators auto-scanned via AddValidatorsFromAssemblyContaining
10 lines
190 B
C#
10 lines
190 B
C#
namespace SIGCM2.Application.Secciones.Create;
|
|
|
|
public sealed record SeccionCreatedDto(
|
|
int Id,
|
|
int MedioId,
|
|
string Codigo,
|
|
string Nombre,
|
|
string Tipo,
|
|
bool Activo);
|