< Summary - Syki

Information
Class: Syki.Back.Features.Webhooks.GetWebhookSubscriptions.GetWebhookSubscriptionsItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookSubscriptions/GetWebhookSubscriptionsOut.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 38
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%

File(s)

/home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookSubscriptions/GetWebhookSubscriptionsOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Webhooks.GetWebhookSubscriptions;
 2
 3public class GetWebhookSubscriptionsOut : IApiDto<GetWebhookSubscriptionsOut>
 4{
 5    public int Total { get; set; }
 6    public List<GetWebhookSubscriptionsItemOut> Items { get; set; } = [];
 7
 8    public static IEnumerable<(string, GetWebhookSubscriptionsOut)> GetExamples() =>
 9    [
 10        ("Exemplo",
 11        new GetWebhookSubscriptionsOut
 12        {
 13            Total = 1,
 14            Items =
 15            [
 16                new GetWebhookSubscriptionsItemOut
 17                {
 18                    Id = 1,
 19                    Name = "Aluno criado",
 20                    Url = "https://webhook.site/my-webhook",
 21                    IsActive = true,
 22                    Events = [WebhookEventType.StudentCreated],
 23                    CreatedAt = DateTime.UtcNow,
 24                },
 25            ],
 26        }),
 27    ];
 28}
 29
 30public class GetWebhookSubscriptionsItemOut
 31{
 032    public int Id { get; set; }
 033    public string Name { get; set; }
 034    public string Url { get; set; }
 035    public bool IsActive { get; set; }
 036    public List<WebhookEventType> Events { get; set; }
 037    public DateTime CreatedAt { get; set; }
 38}