< Summary

Information
Class: FAU.Entidades.BeneficioSocial
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/BeneficioSocial.cs
Line coverage
100%
Covered lines: 17
Uncovered lines: 0
Coverable lines: 17
Total lines: 68
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_TipoBeneficioId()100%11100%
get_Cantidad()100%11100%
get_VigenteDesde()100%11100%
get_VigenteHasta()100%11100%
get_Estado()100%11100%
get_DocumentoRespaldo()100%11100%
get_Observaciones()100%11100%
get_FechaEvento()100%11100%
get_ClaveEvento()100%11100%
get_RetroactividadPendiente()100%11100%
get_CreadoEn()100%11100%
get_CreadoPor()100%11100%
get_Persona()100%11100%
get_TipoBeneficio()100%11100%
get_UsuarioCreador()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("beneficios_sociales")]
 7public class BeneficioSocial
 8{
 9    [Key]
 10    [Column("id")]
 2811    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("persona_id")]
 5315    public long PersonaId { get; set; }
 16
 17    [Required]
 18    [Column("tipo_beneficio_id")]
 5119    public long TipoBeneficioId { get; set; }
 20
 21    [Required]
 22    [Column("cantidad")]
 9023    public short Cantidad { get; set; } = 1;
 24
 25    [Required]
 26    [Column("vigente_desde")]
 5027    public DateTime VigenteDesde { get; set; }
 28
 29    [Column("vigente_hasta")]
 1830    public DateTime? VigenteHasta { get; set; }
 31
 32    [Required]
 33    [MaxLength(20)]
 34    [Column("estado")]
 9935    public string Estado { get; set; } = "activo";
 36
 37    [MaxLength(200)]
 38    [Column("documento_respaldo")]
 939    public string? DocumentoRespaldo { get; set; }
 40
 41    [Column("observaciones")]
 842    public string? Observaciones { get; set; }
 43
 44    [Column("fecha_evento", TypeName = "date")]
 2545    public DateTime? FechaEvento { get; set; }
 46
 47    [MaxLength(80)]
 48    [Column("clave_evento")]
 2749    public string? ClaveEvento { get; set; }
 50
 51    [Column("retroactividad_pendiente")]
 652    public bool RetroactividadPendiente { get; set; }
 53
 54    [Column("creado_en")]
 4555    public DateTime CreadoEn { get; set; } = DateTime.UtcNow;
 56
 57    [Column("creado_por")]
 358    public long? CreadoPor { get; set; }
 59
 60    [ForeignKey("PersonaId")]
 261    public virtual Persona Persona { get; set; } = null!;
 62
 63    [ForeignKey("TipoBeneficioId")]
 964    public virtual TipoBeneficio TipoBeneficio { get; set; } = null!;
 65
 66    [ForeignKey("CreadoPor")]
 267    public virtual Usuario? UsuarioCreador { get; set; }
 68}