< Summary

Information
Class: LGDXRobotCloud.Data.Entities.AutoTask
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/AutoTask.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 14
Coverable lines: 14
Total lines: 46
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_AutoTaskDetails()100%210%
get_Priority()100%210%
get_Flow()100%210%
get_FlowId()100%210%
get_Realm()100%210%
get_RealmId()100%210%
get_AssignedRobot()100%210%
get_AssignedRobotId()100%210%
get_CurrentProgress()100%210%
get_CurrentProgressId()100%210%
get_CurrentProgressOrder()100%210%
get_NextToken()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace LGDXRobotCloud.Data.Entities;
 6
 7[Table("Automation.AutoTasks")]
 8[Index(nameof(RealmId), nameof(AssignedRobotId))]
 9public class AutoTask
 10{
 11  [Key]
 12  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 013  public int Id { get; set; }
 14
 15  [MaxLength(50)]
 016  public string? Name { get; set; }
 17
 018  public ICollection<AutoTaskDetail> AutoTaskDetails { get; set; } = [];
 19
 020  public int Priority { get; set; }
 21
 22  [ForeignKey("FlowId")]
 023  public Flow? Flow { get; set; } = null!;
 24
 025  public int? FlowId { get; set; }
 26
 27  [ForeignKey("RealmId")]
 028  public Realm Realm { get; set; } = null!;
 29
 030  public int RealmId { get; set; }
 31
 32  [ForeignKey("AssignedRobotId")]
 033  public Robot? AssignedRobot { get; set; }
 34
 035  public Guid? AssignedRobotId { get; set; }
 36
 37  [ForeignKey("CurrentProgressId")]
 038  public Progress CurrentProgress { get; set; } = null!;
 39
 040  public int CurrentProgressId { get; set; }
 41
 042  public int? CurrentProgressOrder { get; set; }
 43
 44  [MaxLength(32)]
 045  public string? NextToken { get; set; }
 46}