< Summary

Information
Class: ShopGuard.Core.Models.BookingCreatedResponse
Assembly: ShopGuard.Core
File(s): /home/runner/work/ShopGuard/ShopGuard/ShopGuard/ShopGuard.Core/Models/BookingCreatedResponse.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_BookingId()100%11100%
get_Booking()100%11100%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace ShopGuard.Core.Models;
 4
 5/// <summary>
 6/// Response envelope returned by POST /booking.
 7/// </summary>
 8public sealed class BookingCreatedResponse
 9{
 10    [JsonPropertyName("bookingid")]
 211    public required int BookingId { get; init; }
 12
 13    [JsonPropertyName("booking")]
 114    public required Booking Booking { get; init; }
 15}

Methods/Properties

get_BookingId()
get_Booking()