< Summary

Information
Class: FAU.Logica.DTOs.BeneficiarioSocialDto
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/BeneficiarioSocialDto.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 63
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_BeneficioId()100%11100%
get_Nombre()100%11100%
get_Apellido()100%11100%
get_Cedula()100%11100%
get_FechaNacimiento()100%11100%
get_Discapacidad()100%11100%
get_VigenteDesde()100%11100%
get_VigenteHasta()100%11100%
get_Activo()100%11100%
get_EdadAnios()100%11100%
get_EsMenorDeEdad()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/BeneficiarioSocialDto.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace FAU.Logica.DTOs;
 4
 5public class BeneficiarioSocialDto
 6{
 147    public long Id { get; set; }
 208    public long BeneficioId { get; set; }
 279    public string Nombre { get; set; } = string.Empty;
 2710    public string Apellido { get; set; } = string.Empty;
 411    public string? Cedula { get; set; }
 412    public DateTime FechaNacimiento { get; set; }
 613    public bool Discapacidad { get; set; }
 414    public DateTime VigenteDesde { get; set; }
 415    public DateTime? VigenteHasta { get; set; }
 416    public bool Activo { get; set; }
 517    public int EdadAnios { get; set; }
 718    public bool EsMenorDeEdad { get; set; }
 19}
 20
 21public class CrearBeneficiarioSocialRequest
 22{
 23    [Required(ErrorMessage = "El nombre es requerido")]
 24    [MaxLength(100)]
 25    public string Nombre { get; set; } = string.Empty;
 26
 27    [Required(ErrorMessage = "El apellido es requerido")]
 28    [MaxLength(100)]
 29    public string Apellido { get; set; } = string.Empty;
 30
 31    [MaxLength(20)]
 32    public string? Cedula { get; set; }
 33
 34    [Required(ErrorMessage = "La fecha de nacimiento es requerida")]
 35    public DateTime FechaNacimiento { get; set; }
 36
 37    public bool Discapacidad { get; set; } = false;
 38
 39    [Required(ErrorMessage = "La fecha de vigencia es requerida")]
 40    public DateTime VigenteDesde { get; set; }
 41
 42    public DateTime? VigenteHasta { get; set; }
 43}
 44
 45public class ActualizarBeneficiarioSocialRequest
 46{
 47    [MaxLength(100)]
 48    public string? Nombre { get; set; }
 49
 50    [MaxLength(100)]
 51    public string? Apellido { get; set; }
 52
 53    [MaxLength(20)]
 54    public string? Cedula { get; set; }
 55
 56    public DateTime? FechaNacimiento { get; set; }
 57
 58    public bool? Discapacidad { get; set; }
 59
 60    public DateTime? VigenteDesde { get; set; }
 61
 62    public DateTime? VigenteHasta { get; set; }
 63}