< Summary

Information
Class: FAU.Entidades.TarifaPorCategoria
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/TarifaPorCategoria.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 46
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_ItemId()100%11100%
get_Categoria()100%11100%
get_Monto()100%11100%
get_TipoMonto()100%11100%
get_VigenteDesde()100%11100%
get_VigenteHasta()100%11100%
get_Item()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6/// <summary>
 7/// Tarifas del Instructivo MDN organizadas por categoría (no por grado).
 8/// Usada para ASID_VUELO (ala A/N/S) y SAR (función PARASAR/RESCATISTA/etc.)
 9/// No está atada a compensaciones — cualquier módulo puede consultarla.
 10/// </summary>
 11[Table("tarifas_por_categoria")]
 12public class TarifaPorCategoria
 13{
 14    [Key]
 15    [Column("id")]
 116    public long Id { get; set; }
 17
 18    [Required]
 19    [Column("item_id")]
 320    public long ItemId { get; set; }
 21
 22    [Required]
 23    [MaxLength(50)]
 24    [Column("categoria")]
 3125    public string Categoria { get; set; } = string.Empty;
 26
 27    [Required]
 28    [Column("monto", TypeName = "numeric(14,4)")]
 2329    public decimal Monto { get; set; }
 30
 31    [Required]
 32    [MaxLength(20)]
 33    [Column("tipo_monto")]
 1634    public string TipoMonto { get; set; } = "mensual"; // mensual, diario, hora, por_unidad
 35
 36    [Required]
 37    [Column("vigente_desde", TypeName = "date")]
 138    public DateTime VigenteDesde { get; set; }
 39
 40    [Column("vigente_hasta", TypeName = "date")]
 141    public DateTime? VigenteHasta { get; set; }
 42
 43    // Navegación
 44    [ForeignKey("ItemId")]
 1245    public virtual CatalogoItem Item { get; set; } = null!;
 46}