< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookAuthentication
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateWebhookSubscription/WebhookAuthentication.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 22
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_Id()100%11100%
get_WebhookId()100%11100%
get_Type()100%11100%
get_ApiKey()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateWebhookSubscription/WebhookAuthentication.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateWebhookSubscription;
 2
 3/// <summary>
 4/// Inscrição de Webhook para receber notificações sobre eventos acadêmicos.
 5/// </summary>
 6public class WebhookAuthentication
 7{
 28    public Guid Id { get; set; }
 29    public Guid WebhookId { get; set; }
 410    public WebhookAuthenticationType Type { get; set; }
 411    public string ApiKey { get; set; }
 12
 413    private WebhookAuthentication() { }
 14
 215    public WebhookAuthentication(Guid webhookId, WebhookAuthenticationType type, string apiKey)
 16    {
 217        Id = Guid.CreateVersion7();
 218        WebhookId = webhookId;
 219        Type = type;
 220        ApiKey = apiKey;
 221    }
 22}