< Summary

Information
Class: FAU.Entidades.Grado
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Grado.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 39
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_Id()100%210%
get_EscalafonId()100%210%
get_Codigo()100%210%
get_Denominacion()100%210%
get_Orden()100%210%
get_Vigente()100%210%
get_Escalafon()100%210%
get_RelacionesLaborales()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("grados")]
 7public class Grado
 8{
 9    [Key]
 10    [Column("id")]
 011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("escalafon_id")]
 015    public long EscalafonId { get; set; }
 16
 17    [Required]
 18    [MaxLength(30)]
 19    [Column("codigo")]
 020    public string Codigo { get; set; } = string.Empty;
 21
 22    [Required]
 23    [MaxLength(100)]
 24    [Column("denominacion")]
 025    public string Denominacion { get; set; } = string.Empty;
 26
 27    [Column("orden")]
 028    public short Orden { get; set; }
 29
 30    [Column("vigente")]
 031    public bool Vigente { get; set; } = true;
 32
 33    // Navegación
 34    [ForeignKey("EscalafonId")]
 035    public virtual Escalafon Escalafon { get; set; } = null!;
 36
 037    public virtual ICollection<RelacionLaboral> RelacionesLaborales { get; set; } = new List<RelacionLaboral>();
 38}
 39