< Summary

Information
Class: FAU.Entidades.TramoSanidadMilitar
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/TramoSanidadMilitar.cs
Line coverage
85%
Covered lines: 6
Uncovered lines: 1
Coverable lines: 7
Total lines: 41
Line coverage: 85.7%
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_Desde()100%11100%
get_Hasta()100%11100%
get_Porcentaje()100%11100%
get_CodigoRetencion()100%11100%
get_VigenteDesde()100%11100%
get_VigenteHasta()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6/// <summary>
 7/// Tramo de aporte a Sanidad Militar (Art. 94 Ley 18.834).
 8/// La contribución se liquida sobre el total nominal sujeto a montepío,
 9/// aplicando el porcentaje del tramo cuyo rango [Desde, Hasta] contiene la base.
 10/// </summary>
 11[Table("tramos_sanidad_militar")]
 12public class TramoSanidadMilitar
 13{
 14    [Key]
 15    [Column("id")]
 116    public long Id { get; set; }
 17
 18    [Required]
 19    [Column("desde", TypeName = "numeric(14,2)")]
 3620    public decimal Desde { get; set; }
 21
 22    /// <summary>Tope superior del tramo. NULL = sin tope (último tramo).</summary>
 23    [Column("hasta", TypeName = "numeric(14,2)")]
 4724    public decimal? Hasta { get; set; }
 25
 26    [Required]
 27    [Column("porcentaje", TypeName = "numeric(5,4)")]
 2528    public decimal Porcentaje { get; set; }
 29
 30    /// <summary>Código de retención: 5010 / 5011 / 5012.</summary>
 31    [Required]
 32    [Column("codigo_retencion")]
 2833    public int CodigoRetencion { get; set; }
 34
 35    [Required]
 36    [Column("vigente_desde", TypeName = "date")]
 2237    public DateTime VigenteDesde { get; set; }
 38
 39    [Column("vigente_hasta", TypeName = "date")]
 040    public DateTime? VigenteHasta { get; set; }
 41}