< Summary

Information
Class: OzonDomains.Models.ApiSupplierRequestAuditEntry
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/ApiSupplierRequestAuditEntry.cs
Line coverage
50%
Covered lines: 6
Uncovered lines: 6
Coverable lines: 12
Total lines: 20
Line coverage: 50%
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_Id()100%210%
get_OccurredAtUtc()100%11100%
get_ProviderKey()100%11100%
get_Source()100%11100%
get_Actor()100%210%
get_Method()100%11100%
get_Endpoint()100%11100%
get_StatusCode()100%210%
get_DurationMs()100%210%
get_IsSuccess()100%11100%
get_Request()100%210%
get_Response()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/ApiSupplierRequestAuditEntry.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonDomains.Models;
 4
 5/// <summary>Постоянный аудит фактических HTTP/SOAP-вызовов API-поставщиков.</summary>
 6public sealed class ApiSupplierRequestAuditEntry
 7{
 08    public long Id { get; set; }
 29    public DateTime OccurredAtUtc { get; set; } = DateTime.UtcNow;
 210    [Required, MaxLength(64)] public string ProviderKey { get; set; } = string.Empty;
 111    [Required, MaxLength(500)] public string Source { get; set; } = string.Empty;
 012    [MaxLength(450)] public string? Actor { get; set; }
 113    [Required, MaxLength(12)] public string Method { get; set; } = string.Empty;
 114    [Required, MaxLength(2048)] public string Endpoint { get; set; } = string.Empty;
 015    public int? StatusCode { get; set; }
 016    public long DurationMs { get; set; }
 117    public bool IsSuccess { get; set; }
 018    public string? Request { get; set; }
 019    public string? Response { get; set; }
 20}