< Summary

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

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace ShopGuard.Core.Models;
 4
 5/// <summary>
 6/// Credentials payload for POST /auth.
 7/// </summary>
 8public sealed class AuthRequest
 9{
 10    [JsonPropertyName("username")]
 1211    public required string Username { get; init; }
 12
 13    [JsonPropertyName("password")]
 1214    public required string Password { get; init; }
 15}

Methods/Properties

get_Username()
get_Password()