< Summary

Information
Class: FAU.Logica.DTOs.ActualizarSituacionRequest
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)]
 16    public string Codigo { get; set; } = string.Empty;
 17
 18    [Required(ErrorMessage = "La denominación es requerida")]
 19    [MaxLength(100)]
 20    public string Denominacion { get; set; } = string.Empty;
 21
 22    [MaxLength(300)]
 23    public string? Descripcion { get; set; }
 24
 25    [MaxLength(10)]
 26    public string SistemaSalud { get; set; } = "ssffaa";
 27
 28    [MaxLength(50)]
 29    public string? Calculador { get; set; }
 30
 31    public bool AfectaCobro { get; set; } = true;
 32    public bool Vigente { get; set; } = true;
 33}
 34
 35public class ActualizarSituacionRequest
 36{
 37    [MaxLength(30)]
 438    public string? Codigo { get; set; }
 39
 40    [MaxLength(100)]
 641    public string? Denominacion { get; set; }
 42
 43    [MaxLength(300)]
 144    public string? Descripcion { get; set; }
 45
 46    [MaxLength(10)]
 147    public string? SistemaSalud { get; set; }
 48
 49    [MaxLength(50)]
 150    public string? Calculador { get; set; }
 51
 152    public bool? AfectaCobro { get; set; }
 153    public bool? Vigente { get; set; }
 54}