< Summary

Information
Class: ShopGuard.Core.Models.BookingDates
Assembly: ShopGuard.Core
File(s): /home/runner/work/ShopGuard/ShopGuard/ShopGuard/ShopGuard.Core/Models/BookingDates.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 15
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_CheckIn()100%11100%
get_CheckOut()100%11100%

File(s)

/home/runner/work/ShopGuard/ShopGuard/ShopGuard/ShopGuard.Core/Models/BookingDates.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace ShopGuard.Core.Models;
 4
 5/// <summary>
 6/// Check-in/check-out date pair of a booking. Serialized as "yyyy-MM-dd" by the API.
 7/// </summary>
 8public sealed class BookingDates
 9{
 10    [JsonPropertyName("checkin")]
 1511    public required DateOnly CheckIn { get; init; }
 12
 13    [JsonPropertyName("checkout")]
 1514    public required DateOnly CheckOut { get; init; }
 15}

Methods/Properties

get_CheckIn()
get_CheckOut()