< Summary

Information
Class: FAU.Logica.DTOs.ActualizarCatalogoItemRequest
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/CatalogoItemRequests.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 58
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Nombre()100%11100%
get_Tipo()100%11100%
get_ClasificacionSiif()100%11100%
get_NormaLegal()100%11100%
get_EsGravado()100%11100%
get_AcumulaAguinaldo()100%11100%
get_LlevaAumento()100%11100%
get_FormulaCalculo()100%11100%
get_OrdenCalculo()100%11100%
get_ContribuyeWPara53()100%11100%
get_ContribuyeWPara10()100%11100%
get_ContribuyeWPara20()100%11100%
get_ContribuyeWNominal()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/CatalogoItemRequests.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace FAU.Logica.DTOs;
 4
 5public class CrearCatalogoItemRequest
 6{
 7    [Required]
 8    [MaxLength(150)]
 9    public string Nombre { get; set; } = string.Empty;
 10
 11    [Required]
 12    [RegularExpression(@"^\d{3}\.\d{3}$", ErrorMessage = "El formato debe ser NNN.NNN (ej: 042.568)")]
 13    public string ClasificacionSiif { get; set; } = string.Empty;
 14
 15    [Required]
 16    public string Tipo { get; set; } = "haber_normal";
 17
 18    [MaxLength(100)]
 19    public string? NormaLegal { get; set; }
 20
 21    public bool EsGravado { get; set; } = true;
 22    public bool AcumulaAguinaldo { get; set; } = false;
 23    public bool LlevaAumento { get; set; } = false;
 24
 25    [Required]
 26    public string FormulaCalculo { get; set; } = "por_grado";
 27
 28    public short OrdenCalculo { get; set; } = 0;
 29    public bool ContribuyeWPara53 { get; set; } = false;
 30    public bool ContribuyeWPara10 { get; set; } = false;
 31    public bool ContribuyeWPara20 { get; set; } = false;
 32    public bool ContribuyeWNominal { get; set; } = false;
 33    public bool Vigente { get; set; } = true;
 34}
 35
 36public class ActualizarCatalogoItemRequest
 37{
 38    [MaxLength(150)]
 739    public string? Nombre { get; set; }
 40
 1341    public string? Tipo { get; set; }
 42
 43    [RegularExpression(@"^\d{3}\.\d{3}$", ErrorMessage = "El formato debe ser NNN.NNN (ej: 042.568)")]
 1744    public string? ClasificacionSiif { get; set; }
 45
 46    [MaxLength(100)]
 447    public string? NormaLegal { get; set; }
 48
 449    public bool? EsGravado { get; set; }
 450    public bool? AcumulaAguinaldo { get; set; }
 451    public bool? LlevaAumento { get; set; }
 1252    public string? FormulaCalculo { get; set; }
 453    public short? OrdenCalculo { get; set; }
 454    public bool? ContribuyeWPara53 { get; set; }
 455    public bool? ContribuyeWPara10 { get; set; }
 456    public bool? ContribuyeWPara20 { get; set; }
 457    public bool? ContribuyeWNominal { get; set; }
 58}