< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CallWebhooks.WebhookCallAttempt
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CallWebhooks/WebhookCallAttempt.cs
Tag: 4_16869239191
Line coverage
0%
Covered lines: 0
Uncovered lines: 22
Coverable lines: 22
Total lines: 37
Line coverage: 0%
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_WebhookCallId()100%210%
get_Status()100%210%
get_StatusCode()100%210%
get_Response()100%210%
get_CreatedAt()100%210%
.ctor()100%210%
.ctor(...)100%210%
ToOut()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CallWebhooks/WebhookCallAttempt.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CallWebhooks;
 2
 3/// <summary>
 4/// Tentativa de chamada de Webhook
 5/// </summary>
 6public class WebhookCallAttempt
 7{
 08    public Guid Id { get; set; }
 09    public Guid WebhookCallId { get; set; }
 010    public WebhookCallAttemptStatus Status { get; set; }
 011    public int StatusCode { get; set; }
 012    public string Response { get; set; }
 013    public DateTime CreatedAt { get; set; }
 14
 015    private WebhookCallAttempt() { }
 16
 017    public WebhookCallAttempt(Guid webhookCallId, WebhookCallAttemptStatus status, int statusCode, string response)
 18    {
 019        Id = Guid.CreateVersion7();
 020        WebhookCallId = webhookCallId;
 021        Status = status;
 022        StatusCode = statusCode;
 023        Response = response;
 024        CreatedAt = DateTime.UtcNow;
 025    }
 26
 27    public GetWebhookCallAttemptOut ToOut()
 28    {
 029        return new()
 030        {
 031            Status = Status,
 032            Response = Response,
 033            CreatedAt = CreatedAt,
 034            StatusCode = StatusCode,
 035        };
 36    }
 37}