< Summary

Information
Class: FAU.Entidades.BitacoraAuditoria
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/BitacoraAuditoria.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 42
Line coverage: 100%
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_UsuarioId()100%11100%
get_AccionId()100%11100%
get_ContextoId()100%11100%
get_Host()100%11100%
get_Fecha()100%11100%
get_Usuario()100%11100%
get_Accion()100%11100%
get_Contexto()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("bitacora_auditoria")]
 7public class BitacoraAuditoria
 8{
 9    [Key]
 10    [Column("id")]
 311    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("usuario_id")]
 315    public long UsuarioId { get; set; }
 16
 17    [Required]
 18    [Column("accion_id")]
 319    public long AccionId { get; set; }
 20
 21    [Required]
 22    [Column("contexto_id")]
 323    public long ContextoId { get; set; }
 24
 25    [MaxLength(100)]
 26    [Column("host")]
 427    public string? Host { get; set; }
 28
 29    [Column("fecha")]
 630    public DateTime Fecha { get; set; } = DateTime.UtcNow;
 31
 32    // Navegación
 33    [ForeignKey("UsuarioId")]
 134    public virtual Usuario Usuario { get; set; } = null!;
 35
 36    [ForeignKey("AccionId")]
 137    public virtual Accion Accion { get; set; } = null!;
 38
 39    [ForeignKey("ContextoId")]
 140    public virtual Contexto Contexto { get; set; } = null!;
 41}
 42