< Summary - Syki

Information
Class: Syki.Back.Features.Webhooks.GetWebhookSubscription.GetWebhookSubscriptionOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookSubscription/GetWebhookSubscriptionOut.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 18
Coverable lines: 18
Total lines: 25
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%
get_CreatedAt()100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookSubscription/GetWebhookSubscriptionOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Webhooks.GetWebhookSubscription;
 2
 3public class GetWebhookSubscriptionOut : IApiDto<GetWebhookSubscriptionOut>
 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; }
 010    public DateTime CreatedAt { get; set; }
 11
 12    public static IEnumerable<(string, GetWebhookSubscriptionOut)> GetExamples() =>
 013    [
 014        ("Exemplo",
 015        new GetWebhookSubscriptionOut
 016        {
 017            Id = 1,
 018            Name = "Aluno criado",
 019            Url = "https://webhook.site/my-webhook",
 020            IsActive = true,
 021            Events = [WebhookEventType.StudentCreated],
 022            CreatedAt = DateTime.UtcNow,
 023        }),
 024    ];
 25}