< Summary

Information
Class: FAU.Entidades.TipoCompensacion
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/TipoCompensacion.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 37
Line coverage: 100%
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_UnidadMedida()100%11100%
get_RequiereFuente()100%11100%
get_Vigente()100%11100%
get_Configuraciones()100%11100%
get_Lotes()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("tipos_compensacion")]
 7public class TipoCompensacion
 8{
 9    [Key]
 10    [Column("id")]
 11911    public long Id { get; set; }
 12
 13    [Required]
 14    [MaxLength(30)]
 15    [Column("codigo")]
 18916    public string Codigo { get; set; } = string.Empty;
 17
 18    [Required]
 19    [MaxLength(120)]
 20    [Column("nombre")]
 19221    public string Nombre { get; set; } = string.Empty;
 22
 23    [Required]
 24    [MaxLength(10)]
 25    [Column("unidad_medida")]
 17826    public string UnidadMedida { get; set; } = "monto"; // dia, hora, monto
 27
 28    [Column("requiere_fuente")]
 10429    public bool RequiereFuente { get; set; } = true;
 30
 31    [Column("vigente")]
 18032    public bool Vigente { get; set; } = true;
 33
 34    // Navegacion
 9535    public virtual ICollection<ConfigCompensacion> Configuraciones { get; set; } = new List<ConfigCompensacion>();
 9336    public virtual ICollection<LoteCompensacion> Lotes { get; set; } = new List<LoteCompensacion>();
 37}