< Summary

Information
Class: FAU.Entidades.Acreedor
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Acreedor.cs
Line coverage
87%
Covered lines: 7
Uncovered lines: 1
Coverable lines: 8
Total lines: 39
Line coverage: 87.5%
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_Codigo()100%11100%
get_Nombre()100%11100%
get_PrioridadDeficit()100%11100%
get_FormatoArchivo()100%11100%
get_Contacto()100%210%
get_Activo()100%11100%
get_DescuentosPersonalesPeriodo()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("acreedores")]
 7public class Acreedor
 8{
 9    [Key]
 10    [Column("id")]
 1911    public long Id { get; set; }
 12
 13    [Required]
 14    [MaxLength(20)]
 15    [Column("codigo")]
 3716    public string Codigo { get; set; } = string.Empty;
 17
 18    [Required]
 19    [MaxLength(150)]
 20    [Column("nombre")]
 3721    public string Nombre { get; set; } = string.Empty;
 22
 23    [Required]
 24    [Column("prioridad_deficit")]
 2825    public short PrioridadDeficit { get; set; }
 26
 27    [MaxLength(10)]
 28    [Column("formato_archivo")]
 1929    public string? FormatoArchivo { get; set; } = "txt";
 30
 31    [MaxLength(200)]
 32    [Column("contacto")]
 033    public string? Contacto { get; set; }
 34
 35    [Column("activo")]
 3736    public bool Activo { get; set; } = true;
 37
 1938    public virtual ICollection<DescuentoPersonalPeriodo> DescuentosPersonalesPeriodo { get; set; } = new List<DescuentoP
 39}