< Summary

Information
Class: LGDXRobotCloud.Data.Entities.ApiKey
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/ApiKey.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 22
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_Name()100%11100%
get_Secret()100%11100%
get_IsThirdParty()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace LGDXRobotCloud.Data.Entities;
 5
 6[Table("Administration.ApiKeys")]
 7public class ApiKey
 8{
 9  [Key]
 10  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 611  public int Id { get; set; }
 12
 13  [MaxLength(50)]
 14  [Required]
 615  public string Name { get; set; } = null!;
 16
 17  [MaxLength(200)]
 218  public string Secret { get; set; } = null!;
 19
 20  [Required]
 821  public bool IsThirdParty { get; set; }
 22}