< Summary

Information
Class: FAU.Logica.DTOs.CrearCatalogoItemRequest
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/CatalogoItemRequests.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
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_ClasificacionSiif()100%11100%
get_Tipo()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%
get_Vigente()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)]
 119    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)")]
 1813    public string ClasificacionSiif { get; set; } = string.Empty;
 14
 15    [Required]
 1816    public string Tipo { get; set; } = "haber_normal";
 17
 18    [MaxLength(100)]
 119    public string? NormaLegal { get; set; }
 20
 621    public bool EsGravado { get; set; } = true;
 122    public bool AcumulaAguinaldo { get; set; } = false;
 123    public bool LlevaAumento { get; set; } = false;
 24
 25    [Required]
 1726    public string FormulaCalculo { get; set; } = "por_grado";
 27
 128    public short OrdenCalculo { get; set; } = 0;
 129    public bool ContribuyeWPara53 { get; set; } = false;
 130    public bool ContribuyeWPara10 { get; set; } = false;
 131    public bool ContribuyeWPara20 { get; set; } = false;
 132    public bool ContribuyeWNominal { get; set; } = false;
 633    public bool Vigente { get; set; } = true;
 34}
 35
 36public class ActualizarCatalogoItemRequest
 37{
 38    [MaxLength(150)]
 39    public string? Nombre { get; set; }
 40
 41    public string? Tipo { get; set; }
 42
 43    [RegularExpression(@"^\d{3}\.\d{3}$", ErrorMessage = "El formato debe ser NNN.NNN (ej: 042.568)")]
 44    public string? ClasificacionSiif { get; set; }
 45
 46    [MaxLength(100)]
 47    public string? NormaLegal { get; set; }
 48
 49    public bool? EsGravado { get; set; }
 50    public bool? AcumulaAguinaldo { get; set; }
 51    public bool? LlevaAumento { get; set; }
 52    public string? FormulaCalculo { get; set; }
 53    public short? OrdenCalculo { get; set; }
 54    public bool? ContribuyeWPara53 { get; set; }
 55    public bool? ContribuyeWPara10 { get; set; }
 56    public bool? ContribuyeWPara20 { get; set; }
 57    public bool? ContribuyeWNominal { get; set; }
 58}