< 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
60%
Covered lines: 9
Uncovered lines: 6
Coverable lines: 15
Total lines: 59
Line coverage: 60%
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_EsGrabado()100%11100%
get_ContribuyeWPara53()100%210%
get_ContribuyeWPara10()100%210%
get_ContribuyeWPara20()100%210%
get_ClasificacionSiif()100%210%
get_FormulaCalculo()100%210%
get_OrdenCalculo()100%11100%
get_ItemParFictoId()100%210%
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")]
 1211    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("codigo")]
 1015    public int Codigo { get; set; }
 16
 17    [Required]
 18    [MaxLength(150)]
 19    [Column("nombre")]
 2020    public string Nombre { get; set; } = string.Empty;
 21
 22    [Required]
 23    [MaxLength(30)]
 24    [Column("tipo")]
 2025    public string Tipo { get; set; } = "haber_normal";
 26
 27    [Column("es_grabado")]
 1128    public bool EsGrabado { get; set; } = true;
 29
 30    [Column("contribuye_w_para_5_3")]
 031    public bool ContribuyeWPara53 { get; set; } = false;
 32
 33    [Column("contribuye_w_para_10")]
 034    public bool ContribuyeWPara10 { get; set; } = false;
 35
 36    [Column("contribuye_w_para_20")]
 037    public bool ContribuyeWPara20 { get; set; } = false;
 38
 39    [MaxLength(20)]
 40    [Column("clasificacion_siif")]
 041    public string? ClasificacionSiif { get; set; }
 42
 43    [MaxLength(50)]
 44    [Column("formula_calculo")]
 045    public string? FormulaCalculo { get; set; }
 46
 47    [Column("orden_calculo")]
 548    public short OrdenCalculo { get; set; } = 0;
 49
 50    [Column("item_par_ficto_id")]
 051    public long? ItemParFictoId { get; set; }
 52
 53    [Column("vigente")]
 1754    public bool Vigente { get; set; } = true;
 55
 56    // Navegación
 1157    public virtual ICollection<RemuneracionGrado> RemuneracionesGrado { get; set; } = new List<RemuneracionGrado>();
 1158    public virtual ICollection<TarifaPorCategoria> TarifasPorCategoria { get; set; } = new List<TarifaPorCategoria>();
 59}