< Summary

Information
Class: FAU.Entidades.Periodo
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Periodo.cs
Line coverage
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 49
Line coverage: 90%
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_Anio()100%11100%
get_Mes()100%11100%
get_Estado()100%11100%
get_SnapshotId()100%11100%
get_FechaApertura()100%11100%
get_UsuarioApertura()100%11100%
get_HashSnapshot()100%11100%
get_Activo()100%11100%
get_Snapshot()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("periodos_liquidacion")]
 7public class Periodo
 8{
 9    [Key]
 10    [Column("id")]
 1011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("anio")]
 515    public short Anio { get; set; }
 16
 17    [Required]
 18    [Column("mes")]
 519    public short Mes { get; set; }
 20
 21    [Required]
 22    [MaxLength(20)]
 23    [Column("estado")]
 1124    public string Estado { get; set; } = "ABIERTA";
 25
 26    [Required]
 27    [Column("snapshot_id")]
 728    public long SnapshotId { get; set; }
 29
 30    [Required]
 31    [Column("fecha_apertura")]
 932    public DateTime FechaApertura { get; set; } = DateTime.UtcNow;
 33
 34    [Required]
 35    [Column("usuario_apertura")]
 536    public long UsuarioApertura { get; set; }
 37
 38    [Required]
 39    [MaxLength(64)]
 40    [Column("hash_snapshot")]
 1141    public string HashSnapshot { get; set; } = string.Empty;
 42
 43    [Required]
 44    [Column("activo")]
 845    public bool Activo { get; set; } = true;
 46
 47    [ForeignKey("SnapshotId")]
 048    public virtual SnapshotInsumos Snapshot { get; set; } = null!;
 49}