< Summary

Information
Class: FAU.Entidades.CatalogoItem
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/CatalogoItem.cs
Line coverage
100%
Covered lines: 19
Uncovered lines: 0
Coverable lines: 19
Total lines: 72
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_Id()100%11100%
get_Codigo()100%11100%
get_Nombre()100%11100%
get_Tipo()100%11100%
get_EsGravado()100%11100%
get_ContribuyeWPara53()100%11100%
get_ContribuyeWPara10()100%11100%
get_ContribuyeWPara20()100%11100%
get_ContribuyeWNominal()100%11100%
get_ClasificacionSiif()100%11100%
get_FormulaCalculo()100%11100%
get_OrdenCalculo()100%11100%
get_ItemParFictoId()100%11100%
get_NormaLegal()100%11100%
get_AcumulaAguinaldo()100%11100%
get_LlevaAumento()100%11100%
get_Vigente()100%11100%
get_RemuneracionesGrado()100%11100%
get_TarifasPorCategoria()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/CatalogoItem.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("catalogo_items")]
 7public class CatalogoItem
 8{
 9    [Key]
 10    [Column("id")]
 111911    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("codigo")]
 411315    public int Codigo { get; set; }
 16
 17    [Required]
 18    [MaxLength(150)]
 19    [Column("nombre")]
 290920    public string Nombre { get; set; } = string.Empty;
 21
 22    [Required]
 23    [MaxLength(30)]
 24    [Column("tipo")]
 216425    public string Tipo { get; set; } = "haber_normal";
 26
 27    [Column("es_gravado")]
 188628    public bool EsGravado { get; set; } = true;
 29
 30    [Column("contribuye_w_para_5_3")]
 46031    public bool ContribuyeWPara53 { get; set; } = false;
 32
 33    [Column("contribuye_w_para_10")]
 41434    public bool ContribuyeWPara10 { get; set; } = false;
 35
 36    [Column("contribuye_w_para_20")]
 29137    public bool ContribuyeWPara20 { get; set; } = false;
 38
 39    [Column("contribuye_w_nominal")]
 120140    public bool ContribuyeWNominal { get; set; } = false;
 41
 42    [MaxLength(20)]
 43    [Column("clasificacion_siif")]
 133344    public string? ClasificacionSiif { get; set; }
 45
 46    [MaxLength(50)]
 47    [Column("formula_calculo")]
 448    public string? FormulaCalculo { get; set; }
 49
 50    [Column("orden_calculo")]
 951    public short OrdenCalculo { get; set; } = 0;
 52
 53    [Column("item_par_ficto_id")]
 2254    public long? ItemParFictoId { get; set; }
 55
 56    [MaxLength(100)]
 57    [Column("norma_legal")]
 458    public string? NormaLegal { get; set; }
 59
 60    [Column("acumula_aguinaldo")]
 461    public bool AcumulaAguinaldo { get; set; } = false;
 62
 63    [Column("lleva_aumento")]
 464    public bool LlevaAumento { get; set; } = false;
 65
 66    [Column("vigente")]
 183267    public bool Vigente { get; set; } = true;
 68
 69    // Navegación
 140470    public virtual ICollection<RemuneracionGrado> RemuneracionesGrado { get; set; } = new List<RemuneracionGrado>();
 140471    public virtual ICollection<TarifaPorCategoria> TarifasPorCategoria { get; set; } = new List<TarifaPorCategoria>();
 72}