< Summary

Information
Class: FAU.Entidades.RetroactividadItem
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/RetroactividadItem.cs
Line coverage
88%
Covered lines: 8
Uncovered lines: 1
Coverable lines: 9
Total lines: 44
Line coverage: 88.8%
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_RetroactividadId()100%11100%
get_CodigoItem()100%11100%
get_MontoAnterior()100%11100%
get_MontoNuevo()100%11100%
get_Diferencia()100%11100%
get_MontoTotalRetro()100%11100%
get_EsDescuento()100%11100%
get_Retroactividad()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("retroactividad_items")]
 7public class RetroactividadItem
 8{
 9    [Key]
 10    [Column("id")]
 111    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("retroactividad_id")]
 115    public long RetroactividadId { get; set; }
 16
 17    [Required]
 18    [Column("codigo_item")]
 119    public int CodigoItem { get; set; }
 20
 21    [Required]
 22    [Column("monto_anterior", TypeName = "numeric(14,2)")]
 123    public decimal MontoAnterior { get; set; }
 24
 25    [Required]
 26    [Column("monto_nuevo", TypeName = "numeric(14,2)")]
 127    public decimal MontoNuevo { get; set; }
 28
 29    [Required]
 30    [Column("diferencia", TypeName = "numeric(14,2)")]
 231    public decimal Diferencia { get; set; }
 32
 33    [Required]
 34    [Column("monto_total_retro", TypeName = "numeric(14,2)")]
 135    public decimal MontoTotalRetro { get; set; }
 36
 37    [Required]
 38    [Column("es_descuento")]
 239    public bool EsDescuento { get; set; } = false;
 40
 41    // Navegación
 42    [ForeignKey("RetroactividadId")]
 043    public virtual Retroactividad Retroactividad { get; set; } = null!;
 44}