< Summary - Syki

Information
Class: Syki.Back.Features.Webhooks.UpdateWebhookSubscription.UpdateWebhookSubscriptionIn
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/UpdateWebhookSubscription/UpdateWebhookSubscriptionIn.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 16
Coverable lines: 16
Total lines: 23
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_Name()100%210%
get_Url()100%210%
get_IsActive()100%210%
get_Events()100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Webhooks/UpdateWebhookSubscription/UpdateWebhookSubscriptionIn.cs

#LineLine coverage
 1namespace Syki.Back.Features.Webhooks.UpdateWebhookSubscription;
 2
 3public class UpdateWebhookSubscriptionIn : IApiDto<UpdateWebhookSubscriptionIn>
 4{
 05    public int Id { get; set; }
 06    public string Name { get; set; }
 07    public string Url { get; set; }
 08    public bool IsActive { get; set; }
 09    public List<WebhookEventType> Events { get; set; }
 10
 11    public static IEnumerable<(string, UpdateWebhookSubscriptionIn)> GetExamples() =>
 012    [
 013        ("Exemplo",
 014        new UpdateWebhookSubscriptionIn
 015        {
 016            Id = 1,
 017            Name = "Aluno criado",
 018            Url = "https://webhook.site/my-webhook",
 019            IsActive = true,
 020            Events = [WebhookEventType.StudentCreated],
 021        }),
 022    ];
 23}