< 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
70%
Covered lines: 7
Uncovered lines: 3
Coverable lines: 10
Total lines: 45
Line coverage: 70%
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%210%
get_EsSubalterno()100%210%
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")]
 5911    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("escalafon_id")]
 5315    public long EscalafonId { get; set; }
 16
 17    [Required]
 18    [MaxLength(30)]
 19    [Column("codigo")]
 10520    public string Codigo { get; set; } = string.Empty;
 21
 22    [Required]
 23    [MaxLength(100)]
 24    [Column("denominacion")]
 11125    public string Denominacion { get; set; } = string.Empty;
 26
 27    [Column("orden")]
 5228    public short Orden { get; set; }
 29
 30    [Column("vigente")]
 10131    public bool Vigente { get; set; } = true;
 32
 33    [Column("es_oficial")]
 034    public bool EsOficial { get; set; } = false;
 35
 36    [Column("es_subalterno")]
 037    public bool EsSubalterno { get; set; } = false;
 38
 39    // Navegación
 40    [ForeignKey("EscalafonId")]
 041    public virtual Escalafon Escalafon { get; set; } = null!;
 42
 5343    public virtual ICollection<RelacionLaboral> RelacionesLaborales { get; set; } = new List<RelacionLaboral>();
 44}
 45