< Summary

Information
Class: LGDXRobotCloud.Data.Entities.Trigger
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Trigger.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 38
Line coverage: 0%
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%210%
get_Name()100%210%
get_Url()100%210%
get_HttpMethodId()100%210%
get_Body()100%210%
get_SkipOnFailure()100%210%
get_ApiKeyInsertLocationId()100%210%
get_ApiKeyFieldName()100%210%
get_ApiKey()100%210%
get_ApiKeyId()100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Trigger.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace LGDXRobotCloud.Data.Entities;
 6
 7[Table("Automation.Triggers")]
 8[Index(nameof(ApiKeyInsertLocationId))]
 9public class Trigger
 10{
 11  [Key]
 12  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 013  public int Id { get; set; }
 14
 15  [MaxLength(50)]
 16  [Required]
 017  public string Name { get; set; } = null!;
 18
 19  [MaxLength(200)]
 20  [Required]
 021  public string Url { get; set; } = null!;
 22
 023  public int HttpMethodId { get; set; }
 24
 025  public string? Body { get; set; }
 26
 027  public bool SkipOnFailure { get; set; }
 28
 029  public int? ApiKeyInsertLocationId { get; set; }
 30
 31  [MaxLength(50)]
 032  public string? ApiKeyFieldName { get; set; } // Header name or Json name
 33
 34  [ForeignKey("ApiKeyId")]
 035  public ApiKey? ApiKey { get; set; }
 36
 037  public int? ApiKeyId { get; set; }
 38}