< Summary

Information
Class: FAU.Entidades.Form3100PersonaACargo
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Form3100PersonaACargo.cs
Line coverage
90%
Covered lines: 10
Uncovered lines: 1
Coverable lines: 11
Total lines: 54
Line coverage: 90.9%
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_Form3100Id()100%11100%
get_Nombre()100%11100%
get_Apellido()100%11100%
get_FechaNacimiento()100%11100%
get_Cedula()100%11100%
get_Sexo()100%11100%
get_PorcentajeAtribucion()100%11100%
get_Relacion()100%11100%
get_Discapacidad()100%11100%
get_Form3100()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("form3100_personas_cargo")]
 7public class Form3100PersonaACargo
 8{
 9    [Key]
 10    [Column("id")]
 1011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("form3100_id")]
 1115    public long Form3100Id { get; set; }
 16
 17    [Required]
 18    [MaxLength(100)]
 19    [Column("nombre")]
 1920    public string Nombre { get; set; } = string.Empty;
 21
 22    [Required]
 23    [MaxLength(100)]
 24    [Column("apellido")]
 1925    public string Apellido { get; set; } = string.Empty;
 26
 27    [Required]
 28    [Column("fecha_nacimiento", TypeName = "date")]
 829    public DateTime FechaNacimiento { get; set; }
 30
 31    [MaxLength(20)]
 32    [Column("cedula")]
 233    public string? Cedula { get; set; }
 34
 35    [Required]
 36    [MaxLength(1)]
 37    [Column("sexo")]
 1938    public string Sexo { get; set; } = string.Empty;
 39
 40    [Required]
 41    [Column("porcentaje_atribucion")]
 1542    public short PorcentajeAtribucion { get; set; }
 43
 44    [Required]
 45    [MaxLength(100)]
 46    [Column("relacion")]
 2247    public string Relacion { get; set; } = string.Empty;
 48
 49    [Column("discapacidad")]
 550    public bool Discapacidad { get; set; } = false;
 51
 52    [ForeignKey("Form3100Id")]
 053    public virtual Form3100 Form3100 { get; set; } = null!;
 54}