< Summary

Information
Class: FAU.Entidades.Documento
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Documento.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_Tipo()100%11100%
get_EntidadId()100%11100%
get_RutaRelativa()100%11100%
get_NombreOriginal()100%11100%
get_ContentType()100%11100%
get_TamanioBytes()100%11100%
get_FechaCarga()100%11100%
get_UsuarioCargaId()100%11100%
get_UsuarioCarga()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("documentos")]
 7public class Documento
 8{
 9    [Key]
 10    [Column("id")]
 511    public long Id { get; set; }
 12
 13    [Required]
 14    [MaxLength(50)]
 15    [Column("tipo")]
 1916    public string Tipo { get; set; } = string.Empty;
 17
 18    [Required]
 19    [Column("entidad_id")]
 1020    public long EntidadId { get; set; }
 21
 22    [Required]
 23    [MaxLength(500)]
 24    [Column("ruta_relativa")]
 1825    public string RutaRelativa { get; set; } = string.Empty;
 26
 27    [Required]
 28    [MaxLength(255)]
 29    [Column("nombre_original")]
 1830    public string NombreOriginal { get; set; } = string.Empty;
 31
 32    [Required]
 33    [MaxLength(100)]
 34    [Column("content_type")]
 1835    public string ContentType { get; set; } = string.Empty;
 36
 37    [Required]
 38    [Column("tamanio_bytes")]
 939    public long TamanioBytes { get; set; }
 40
 41    [Column("fecha_carga")]
 2042    public DateTime FechaCarga { get; set; } = DateTime.UtcNow;
 43
 44    [Column("usuario_carga_id")]
 145    public long? UsuarioCargaId { get; set; }
 46
 47    [ForeignKey("UsuarioCargaId")]
 048    public virtual Usuario? UsuarioCarga { get; set; }
 49}