< 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
0%
Covered lines: 0
Uncovered lines: 14
Coverable lines: 14
Total lines: 58
Line coverage: 0%
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%210%
get_ClasificacionSiif()100%210%
get_Tipo()100%210%
get_NormaLegal()100%210%
get_EsGravado()100%210%
get_AcumulaAguinaldo()100%210%
get_LlevaAumento()100%210%
get_FormulaCalculo()100%210%
get_OrdenCalculo()100%210%
get_ContribuyeWPara53()100%210%
get_ContribuyeWPara10()100%210%
get_ContribuyeWPara20()100%210%
get_ContribuyeWNominal()100%210%
get_Vigente()100%210%

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)]
 09    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)")]
 013    public string ClasificacionSiif { get; set; } = string.Empty;
 14
 15    [Required]
 016    public string Tipo { get; set; } = "haber_normal";
 17
 18    [MaxLength(100)]
 019    public string? NormaLegal { get; set; }
 20
 021    public bool EsGravado { get; set; } = true;
 022    public bool AcumulaAguinaldo { get; set; } = false;
 023    public bool LlevaAumento { get; set; } = false;
 24
 25    [Required]
 026    public string FormulaCalculo { get; set; } = "por_grado";
 27
 028    public short OrdenCalculo { get; set; } = 0;
 029    public bool ContribuyeWPara53 { get; set; } = false;
 030    public bool ContribuyeWPara10 { get; set; } = false;
 031    public bool ContribuyeWPara20 { get; set; } = false;
 032    public bool ContribuyeWNominal { get; set; } = false;
 033    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}