< Summary

Information
Class: LGDXRobotCloud.Data.Entities.RobotCertificate
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/RobotCertificate.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 30
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_Thumbprint()100%210%
get_ThumbprintBackup()100%210%
get_NotBefore()100%210%
get_NotAfter()100%210%
get_Robot()100%210%
get_RobotId()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace LGDXRobotCloud.Data.Entities;
 6
 7[Table("Navigation.RobotCertificates")]
 8public class RobotCertificate
 9{
 10  [Key]
 11  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 012  public Guid Id { get; set; }
 13
 14  [MaxLength(40)]
 015  public string Thumbprint { get; set; } = null!;
 16
 17  [MaxLength(40)]
 018  public string? ThumbprintBackup { get; set; }
 19
 20  [Precision(0)]
 021  public DateTime NotBefore { get; set; }
 22
 23  [Precision(0)]
 024  public DateTime NotAfter { get; set; }
 25
 26  [ForeignKey("RobotId")]
 027  public Robot Robot { get; set; } = null!;
 28
 029  public Guid RobotId { get; set; }
 30}