< Summary

Information
Class: LGDXRobotCloud.Data.Models.DTOs.V1.Commands.WaypointTrafficUpdateDtoExtensions
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: 7
Coverable lines: 7
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
ToBusinessModel(...)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{
 7  public required int WaypointFromId { get; set; }
 8
 9  public required int WaypointToId { get; set; }
 10}
 11
 12public static class WaypointTrafficUpdateDtoExtensions
 13{
 14  public static WaypointTrafficUpdateBusinessModel ToBusinessModel(this WaypointTrafficUpdateDto model)
 015  {
 016    return new WaypointTrafficUpdateBusinessModel
 017    {
 018      WaypointFromId = model.WaypointFromId,
 019      WaypointToId = model.WaypointToId,
 020    };
 021  }
 22}