< Summary

Information
Class: FAU.Entidades.HistoricoLiquidacion
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/HistoricoLiquidacion.cs
Line coverage
35%
Covered lines: 7
Uncovered lines: 13
Coverable lines: 20
Total lines: 76
Line coverage: 35%
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_PersonaId()100%11100%
get_Anio()100%11100%
get_Mes()100%11100%
get_HaberesGravados()100%11100%
get_SituacionId()100%210%
get_GradoId()100%210%
get_EscalafonId()100%210%
get_UnidadId()100%210%
get_ProgramaId()100%210%
get_RegimenId()100%210%
get_Origen()100%11100%
get_FechaCreacion()100%11100%
get_Persona()100%210%
get_Situacion()100%210%
get_Grado()100%210%
get_Escalafon()100%210%
get_Unidad()100%210%
get_Programa()100%210%
get_Regimen()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("historico_liquidaciones")]
 7public class HistoricoLiquidacion
 8{
 9    [Key]
 10    [Column("id")]
 311    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("persona_id")]
 315    public long PersonaId { get; set; }
 16
 17    [Required]
 18    [Column("anio")]
 319    public short Anio { get; set; }
 20
 21    [Required]
 22    [Column("mes")]
 323    public short Mes { get; set; }
 24
 25    [Required]
 26    [Column("haberes_gravados", TypeName = "numeric(14,2)")]
 327    public decimal HaberesGravados { get; set; }
 28
 29    [Column("situacion_id")]
 030    public long? SituacionId { get; set; }
 31
 32    [Column("grado_id")]
 033    public long? GradoId { get; set; }
 34
 35    [Column("escalafon_id")]
 036    public long? EscalafonId { get; set; }
 37
 38    [Column("unidad_id")]
 039    public long? UnidadId { get; set; }
 40
 41    [Column("programa_id")]
 042    public long? ProgramaId { get; set; }
 43
 44    [Column("regimen_id")]
 045    public long? RegimenId { get; set; }
 46
 47    [Required]
 48    [MaxLength(20)]
 49    [Column("origen")]
 350    public string Origen { get; set; } = "SISTEMA";
 51
 52    [Required]
 53    [Column("fecha_creacion")]
 354    public DateTime FechaCreacion { get; set; } = DateTime.UtcNow;
 55
 56    [ForeignKey("PersonaId")]
 057    public virtual Persona Persona { get; set; } = null!;
 58
 59    [ForeignKey("SituacionId")]
 060    public virtual Situacion? Situacion { get; set; }
 61
 62    [ForeignKey("GradoId")]
 063    public virtual Grado? Grado { get; set; }
 64
 65    [ForeignKey("EscalafonId")]
 066    public virtual Escalafon? Escalafon { get; set; }
 67
 68    [ForeignKey("UnidadId")]
 069    public virtual Unidad? Unidad { get; set; }
 70
 71    [ForeignKey("ProgramaId")]
 072    public virtual Programa? Programa { get; set; }
 73
 74    [ForeignKey("RegimenId")]
 075    public virtual Regimen? Regimen { get; set; }
 76}