< 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: 21_17346963026
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{
 48    public Guid Id { get; set; }
 49    public Guid WebhookId { get; set; }
 810    public WebhookAuthenticationType Type { get; set; }
 611    public string ApiKey { get; set; }
 12
 813    private WebhookAuthentication() { }
 14
 415    public WebhookAuthentication(Guid webhookId, WebhookAuthenticationType type, string apiKey)
 16    {
 417        Id = Guid.CreateVersion7();
 418        WebhookId = webhookId;
 419        Type = type;
 420        ApiKey = apiKey;
 421    }
 22}