< Summary

Information
Class: LifeChart.Domain.Medications.IntakeTime
Assembly: LifeChart.Domain
File(s): /home/runner/work/lifechart/lifechart/src/LifeChart.Domain/Medications/IntakeTime.cs
Tag: 113_29159449707
Line coverage
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 18
Line coverage: 90%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Time()100%11100%
get_DoseCount()100%11100%
.ctor(...)100%22100%
.ctor()100%210%

File(s)

/home/runner/work/lifechart/lifechart/src/LifeChart.Domain/Medications/IntakeTime.cs

#LineLine coverage
 1namespace LifeChart.Domain.Medications;
 2
 3public record IntakeTime
 4{
 265    public TimeOnly Time { get; private set; }
 246    public int DoseCount { get; private set; }
 7
 248    public IntakeTime(TimeOnly time, int doseCount)
 9    {
 2410        if (doseCount < 1)
 211            throw new ArgumentOutOfRangeException(
 212                nameof(doseCount), "Dosisanzahl muss mindestens 1 sein.");
 2213        Time = time;
 2214        DoseCount = doseCount;
 2215    }
 16
 017    private IntakeTime() { }
 18}