< Summary

Information
Class: FAU.Entidades.Dependiente
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Dependiente.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 52
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_PersonaId()100%11100%
get_Tipo()100%11100%
get_Nombre()100%11100%
get_Cedula()100%11100%
get_FechaNacimiento()100%11100%
get_Discapacitado()100%11100%
get_PorcentajeDeduccion()100%11100%
get_VigenteDesde()100%11100%
get_VigenteHasta()100%11100%
get_Activo()100%11100%
get_Persona()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("dependientes")]
 7public class Dependiente
 8{
 9    [Key]
 10    [Column("id")]
 2311    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("persona_id")]
 5015    public long PersonaId { get; set; }
 16
 17    [Required]
 18    [MaxLength(30)]
 19    [Column("tipo")]
 9320    public string Tipo { get; set; } = string.Empty;
 21
 22    [Required]
 23    [MaxLength(100)]
 24    [Column("nombre")]
 7925    public string Nombre { get; set; } = string.Empty;
 26
 27    [MaxLength(20)]
 28    [Column("cedula")]
 929    public string? Cedula { get; set; }
 30
 31    [Column("fecha_nacimiento", TypeName = "date")]
 1832    public DateTime? FechaNacimiento { get; set; }
 33
 34    [Column("discapacitado")]
 1635    public bool Discapacitado { get; set; } = false;
 36
 37    [Column("porcentaje_deduccion")]
 838    public short? PorcentajeDeduccion { get; set; }
 39
 40    [Required]
 41    [Column("vigente_desde", TypeName = "date")]
 4142    public DateTime VigenteDesde { get; set; }
 43
 44    [Column("vigente_hasta", TypeName = "date")]
 1445    public DateTime? VigenteHasta { get; set; }
 46
 47    [Column("activo")]
 9048    public bool Activo { get; set; } = true;
 49
 50    [ForeignKey("PersonaId")]
 1751    public virtual Persona Persona { get; set; } = null!;
 52}