< Summary

Information
Class: FAU.Entidades.LiquidacionItem
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/LiquidacionItem.cs
Line coverage
71%
Covered lines: 10
Uncovered lines: 4
Coverable lines: 14
Total lines: 66
Line coverage: 71.4%
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_PeriodoId()100%11100%
get_Cedula()100%11100%
get_Version()100%11100%
get_CodigoConcepto()100%11100%
get_NombreConcepto()100%11100%
get_Importe()100%11100%
get_RubroContable()100%11100%
get_ObjetoGasto()100%210%
get_ProgramaId()100%210%
get_RegimenId()100%210%
get_Rubro083()100%11100%
get_ClaveEvento()100%11100%
get_FechaCreacion()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("liquidacion_items")]
 7public class LiquidacionItem
 8{
 9    [Key]
 10    [Column("id")]
 011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("periodo_id")]
 21715    public long PeriodoId { get; set; }
 16
 17    [Required]
 18    [MaxLength(20)]
 19    [Column("cedula")]
 50020    public string Cedula { get; set; } = string.Empty;
 21
 22    [Required]
 23    [Column("version")]
 21724    public int Version { get; set; }
 25
 26    [Required]
 27    [MaxLength(20)]
 28    [Column("codigo_concepto")]
 91229    public string CodigoConcepto { get; set; } = string.Empty;
 30
 31    [Required]
 32    [MaxLength(150)]
 33    [Column("nombre_concepto")]
 48234    public string NombreConcepto { get; set; } = string.Empty;
 35
 36    [Required]
 37    [Column("importe", TypeName = "numeric(14,2)")]
 49438    public decimal Importe { get; set; }
 39
 40    [Required]
 41    [MaxLength(50)]
 42    [Column("rubro_contable")]
 49443    public string RubroContable { get; set; } = string.Empty;
 44
 45    [MaxLength(50)]
 46    [Column("objeto_gasto")]
 047    public string? ObjetoGasto { get; set; }
 48
 49    [Column("programa_id")]
 050    public long? ProgramaId { get; set; }
 51
 52    [Column("regimen_id")]
 053    public long? RegimenId { get; set; }
 54
 55    [Required]
 56    [Column("rubro_083")]
 21057    public bool Rubro083 { get; set; }
 58
 59    [MaxLength(80)]
 60    [Column("clave_evento")]
 2761    public string? ClaveEvento { get; set; }
 62
 63    [Required]
 64    [Column("fecha_creacion")]
 45965    public DateTime FechaCreacion { get; set; } = DateTime.UtcNow;
 66}