< Summary

Information
Class: FAU.Logica.DTOs.CrearSituacionRequest
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/SituacionDto.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 54
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_Codigo()100%11100%
get_Denominacion()100%11100%
get_Descripcion()100%11100%
get_SistemaSalud()100%11100%
get_Calculador()100%11100%
get_AfectaCobro()100%11100%
get_Vigente()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace FAU.Logica.DTOs;
 4
 5public class SituacionDto
 6{
 7    public long Id { get; set; }
 8    public string Codigo { get; set; } = string.Empty;
 9    public string Denominacion { get; set; } = string.Empty;
 10}
 11
 12public class CrearSituacionRequest
 13{
 14    [Required(ErrorMessage = "El código es requerido")]
 15    [MaxLength(30)]
 1916    public string Codigo { get; set; } = string.Empty;
 17
 18    [Required(ErrorMessage = "La denominación es requerida")]
 19    [MaxLength(100)]
 1620    public string Denominacion { get; set; } = string.Empty;
 21
 22    [MaxLength(300)]
 123    public string? Descripcion { get; set; }
 24
 25    [MaxLength(10)]
 726    public string SistemaSalud { get; set; } = "ssffaa";
 27
 28    [MaxLength(50)]
 129    public string? Calculador { get; set; }
 30
 731    public bool AfectaCobro { get; set; } = true;
 732    public bool Vigente { get; set; } = true;
 33}
 34
 35public class ActualizarSituacionRequest
 36{
 37    [MaxLength(30)]
 38    public string? Codigo { get; set; }
 39
 40    [MaxLength(100)]
 41    public string? Denominacion { get; set; }
 42
 43    [MaxLength(300)]
 44    public string? Descripcion { get; set; }
 45
 46    [MaxLength(10)]
 47    public string? SistemaSalud { get; set; }
 48
 49    [MaxLength(50)]
 50    public string? Calculador { get; set; }
 51
 52    public bool? AfectaCobro { get; set; }
 53    public bool? Vigente { get; set; }
 54}