< Summary

Information
Class: WebApi.Models.SensorGoal
Assembly: IndeklimaWebApi
File(s): /home/runner/work/SEP4/SEP4/backend/microservices/indeklima/WebApi/Models/SensorGoal.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 21
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_HallId()100%11100%
get_DesiredTemperature()100%11100%
get_DesiredHumidity()100%11100%
get_DesiredCo2()100%11100%

File(s)

/home/runner/work/SEP4/SEP4/backend/microservices/indeklima/WebApi/Models/SensorGoal.cs

#LineLine coverage
 1using MongoDB.Bson;
 2using MongoDB.Bson.Serialization.Attributes;
 3using Newtonsoft.Json;
 4
 5namespace WebApi.Models
 6{
 7    public class SensorGoal
 8    {
 9        [BsonId]
 10        [BsonRepresentation(BsonType.ObjectId)]
 2911        public string Id { get; set; } = ObjectId.GenerateNewId().ToString();
 12        [JsonProperty("hallId")]
 3513        public int HallId { get; set; }
 14        [JsonProperty("desiredTemperature")]
 2915        public double DesiredTemperature { get; set; }
 16        [JsonProperty("desiredHumidity")]
 2917        public double DesiredHumidity { get; set; }
 18        [JsonProperty("desiredCO2")]
 2919        public double DesiredCo2 { get; set; }
 20    }
 21}