< Summary

Information
Class: Bookings.Domain.Booking
Assembly: Bookings.Domain
File(s): C:\Code\Bookings\Bookings.Domain\Booking.cs
Line coverage
93%
Covered lines: 15
Uncovered lines: 1
Coverable lines: 16
Total lines: 23
Line coverage: 93.7%
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
.ctor(...)100%210%
.ctor(...)100%11100%
get_Description()100%11100%
get_Type()100%11100%
get_Period()100%11100%
get_Email()100%11100%

File(s)

C:\Code\Bookings\Bookings.Domain\Booking.cs

#LineLine coverage
 1namespace Bookings.Domain
 2{
 03    public record Booking
 4    {
 131535        public Booking(string description, string type, DateRange period, string email)
 131536        {
 131537            ArgumentException.ThrowIfNullOrWhiteSpace(description, nameof(description));
 131478            ArgumentException.ThrowIfNullOrWhiteSpace(type, nameof(type));
 131419            ArgumentNullException.ThrowIfNull(period, nameof(period));
 1313510            ArgumentException.ThrowIfNullOrWhiteSpace(email, nameof(email));
 11
 1312912            Description = description;
 1312913            Type = type;
 1312914            Period = period;
 1312915            Email = email;
 1312916        }
 17
 406718        public string Description { get; }
 406719        public string Type { get; }
 810220        public DateRange Period { get; }
 406721        public string Email { get; }
 22    }
 23}