< 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
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 44
Line coverage: 90%
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_EscalafonId()100%11100%
get_Codigo()100%11100%
get_Denominacion()100%11100%
get_Orden()100%11100%
get_Vigente()100%11100%
get_EsOficial()100%11100%
get_EsSubalterno()100%11100%
get_Escalafon()100%210%
get_RelacionesLaborales()100%11100%

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")]
 10611    public long Id { get; set; }
 12
 13    [Column("escalafon_id")]
 7214    public long? EscalafonId { get; set; }
 15
 16    [Required]
 17    [MaxLength(30)]
 18    [Column("codigo")]
 24919    public string Codigo { get; set; } = string.Empty;
 20
 21    [Required]
 22    [MaxLength(100)]
 23    [Column("denominacion")]
 25524    public string Denominacion { get; set; } = string.Empty;
 25
 26    [Column("orden")]
 11327    public short Orden { get; set; }
 28
 29    [Column("vigente")]
 20530    public bool Vigente { get; set; } = true;
 31
 32    [Column("es_oficial")]
 4833    public bool EsOficial { get; set; } = false;
 34
 35    [Column("es_subalterno")]
 4836    public bool EsSubalterno { get; set; } = false;
 37
 38    // Navegación
 39    [ForeignKey("EscalafonId")]
 040    public virtual Escalafon? Escalafon { get; set; }
 41
 12342    public virtual ICollection<RelacionLaboral> RelacionesLaborales { get; set; } = new List<RelacionLaboral>();
 43}
 44