< Summary

Information
Class: LGDXRobotCloud.Data.Models.DTOs.V1.Commands.WaypointTrafficUpdateDto
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/DTOs/V1/Commands/WaypointTrafficUpdateDto.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 22
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_WaypointFromId()100%210%
get_WaypointToId()100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/DTOs/V1/Commands/WaypointTrafficUpdateDto.cs

#LineLine coverage
 1using LGDXRobotCloud.Data.Models.Business.Navigation;
 2
 3namespace LGDXRobotCloud.Data.Models.DTOs.V1.Commands;
 4
 5public record WaypointTrafficUpdateDto
 6{
 07  public required int WaypointFromId { get; set; }
 8
 09  public required int WaypointToId { get; set; }
 10}
 11
 12public static class WaypointTrafficUpdateDtoExtensions
 13{
 14  public static WaypointTrafficUpdateBusinessModel ToBusinessModel(this WaypointTrafficUpdateDto model)
 15  {
 16    return new WaypointTrafficUpdateBusinessModel
 17    {
 18      WaypointFromId = model.WaypointFromId,
 19      WaypointToId = model.WaypointToId,
 20    };
 21  }
 22}