< Summary

Information
Class: LGDXRobotCloud.Data.Models.Business.Navigation.RobotChassisInfoBusinessModel
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/Business/Navigation/RobotChassisInfoBusinessModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 42
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_RobotTypeId()100%210%
get_ChassisLengthX()100%210%
get_ChassisLengthY()100%210%
get_ChassisWheelCount()100%210%
get_ChassisWheelRadius()100%210%
get_BatteryCount()100%210%
get_BatteryMaxVoltage()100%210%
get_BatteryMinVoltage()100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/Business/Navigation/RobotChassisInfoBusinessModel.cs

#LineLine coverage
 1using LGDXRobotCloud.Data.Models.DTOs.V1.Responses;
 2
 3namespace LGDXRobotCloud.Data.Models.Business.Navigation;
 4
 5public record RobotChassisInfoBusinessModel
 6{
 07  public int Id { get; set; }
 8
 09  public required int RobotTypeId { get; set; }
 10
 011  public required double ChassisLengthX { get; set; }
 12
 013  public required double ChassisLengthY { get; set; }
 14
 015  public required int ChassisWheelCount { get; set; }
 16
 017  public required double ChassisWheelRadius { get; set; }
 18
 019  public required int BatteryCount { get; set; }
 20
 021  public required double BatteryMaxVoltage { get; set; }
 22
 023  public required double BatteryMinVoltage { get; set; }
 24}
 25
 26public static class RobotChassisInfoBusinessModelExtensions
 27{
 28  public static RobotChassisInfoDto ToDto(this RobotChassisInfoBusinessModel robotChassisInfo)
 29  {
 30    return new RobotChassisInfoDto {
 31      Id = robotChassisInfo.Id,
 32      RobotTypeId = robotChassisInfo.RobotTypeId,
 33      ChassisLengthX = robotChassisInfo.ChassisLengthX,
 34      ChassisLengthY = robotChassisInfo.ChassisLengthY,
 35      ChassisWheelCount = robotChassisInfo.ChassisWheelCount,
 36      ChassisWheelRadius = robotChassisInfo.ChassisWheelRadius,
 37      BatteryCount = robotChassisInfo.BatteryCount,
 38      BatteryMaxVoltage = robotChassisInfo.BatteryMaxVoltage,
 39      BatteryMinVoltage = robotChassisInfo.BatteryMinVoltage,
 40    };
 41  }
 42}