< Summary

Information
Class: WebApi.Models.SensorData
Assembly: IndeklimaWebApi
File(s): /home/runner/work/SEP4/SEP4/backend/microservices/indeklima/WebApi/Models/SensorData.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 19
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_Temperature()100%11100%
get_Humidity()100%11100%
get_CO2()100%11100%
get_TemperatureTimestamp()100%11100%
get_HumidityTimestamp()100%11100%
get_CO2Timestamp()100%11100%

File(s)

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

#LineLine coverage
 1using MongoDB.Bson;
 2using MongoDB.Bson.Serialization.Attributes;
 3
 4namespace WebApi.Models
 5{
 6    public class SensorData
 7    {
 8        [BsonId]
 9        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
 4710        public string Id { get; set; } = ObjectId.GenerateNewId().ToString();
 3011        public int HallId { get; set; }
 3312        public double Temperature { get; set; }
 3313        public double Humidity { get; set; }
 3314        public double CO2 { get; set; }
 3015        public DateTime TemperatureTimestamp { get; set; }
 3016        public DateTime HumidityTimestamp { get; set; }
 3017        public DateTime CO2Timestamp { get; set; }
 18    }
 19}