< 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
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 44
Line coverage: 0%
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%210%
get_RetroactividadId()100%210%
get_CodigoItem()100%210%
get_MontoAnterior()100%210%
get_MontoNuevo()100%210%
get_Diferencia()100%210%
get_MontoTotalRetro()100%210%
get_EsDescuento()100%210%
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")]
 011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("retroactividad_id")]
 015    public long RetroactividadId { get; set; }
 16
 17    [Required]
 18    [Column("codigo_item")]
 019    public int CodigoItem { get; set; }
 20
 21    [Required]
 22    [Column("monto_anterior", TypeName = "numeric(14,2)")]
 023    public decimal MontoAnterior { get; set; }
 24
 25    [Required]
 26    [Column("monto_nuevo", TypeName = "numeric(14,2)")]
 027    public decimal MontoNuevo { get; set; }
 28
 29    [Required]
 30    [Column("diferencia", TypeName = "numeric(14,2)")]
 031    public decimal Diferencia { get; set; }
 32
 33    [Required]
 34    [Column("monto_total_retro", TypeName = "numeric(14,2)")]
 035    public decimal MontoTotalRetro { get; set; }
 36
 37    [Required]
 38    [Column("es_descuento")]
 039    public bool EsDescuento { get; set; } = false;
 40
 41    // Navegación
 42    [ForeignKey("RetroactividadId")]
 043    public virtual Retroactividad Retroactividad { get; set; } = null!;
 44}