< 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: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 72
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_Subtipo()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")]
 8211    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("persona_id")]
 9815    public long PersonaId { get; set; }
 16
 17    [Required]
 18    [Column("tipo_beneficio_id")]
 9719    public long TipoBeneficioId { get; set; }
 20
 21    [Required]
 22    [Column("cantidad")]
 19623    public short Cantidad { get; set; } = 1;
 24
 25    [Required]
 26    [Column("vigente_desde")]
 9527    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")]
 19435    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")]
 2945    public DateTime? FechaEvento { get; set; }
 46
 47    [MaxLength(80)]
 48    [Column("clave_evento")]
 7849    public string? ClaveEvento { get; set; }
 50
 51    [MaxLength(20)]
 52    [Column("subtipo")]
 3853    public string? Subtipo { get; set; }
 54
 55    [Column("retroactividad_pendiente")]
 7456    public bool RetroactividadPendiente { get; set; }
 57
 58    [Column("creado_en")]
 9059    public DateTime CreadoEn { get; set; } = DateTime.UtcNow;
 60
 61    [Column("creado_por")]
 362    public long? CreadoPor { get; set; }
 63
 64    [ForeignKey("PersonaId")]
 1065    public virtual Persona Persona { get; set; } = null!;
 66
 67    [ForeignKey("TipoBeneficioId")]
 12668    public virtual TipoBeneficio TipoBeneficio { get; set; } = null!;
 69
 70    [ForeignKey("CreadoPor")]
 271    public virtual Usuario? UsuarioCreador { get; set; }
 72}