< Summary

Information
Class: LGDXRobotCloud.Data.Entities.Realm
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Realm.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 34
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_Description()100%11100%
get_HasWaypointsTrafficControl()100%11100%
get_Image()100%11100%
get_Resolution()100%11100%
get_OriginX()100%11100%
get_OriginY()100%11100%
get_OriginRotation()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using LGDXRobotCloud.Utilities.Constants;
 4
 5namespace LGDXRobotCloud.Data.Entities;
 6
 7[Table("Navigation.Realms")]
 8public class Realm
 9{
 10  [Key]
 11  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 19312  public int Id { get; set; }
 13
 14  [MaxLength(50)]
 15  [Required]
 39216  public string Name { get; set; } = null!;
 17
 18  [MaxLength(200)]
 1419  public string? Description { get; set; }
 20
 21  [Required]
 222  public bool HasWaypointsTrafficControl { get; set; }
 23
 24  [MaxLength(LgdxApiConstants.ImageMaxSize)]
 32625  public byte[] Image { get; set; } = [];
 26
 33827  public double Resolution { get; set; } = 0;
 28
 32929  public double OriginX { get; set; } = 0;
 30
 32931  public double OriginY { get; set; } = 0;
 32
 32933  public double OriginRotation { get; set; } = 0;
 34}