< Summary - Syki

Information
Class: Syki.Back.Features.Webhooks.GetWebhookSubscriptions.GetWebhookSubscriptionsOut
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: 21
Coverable lines: 21
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_Total()100%210%
get_Items()100%210%
GetExamples()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{
 05    public int Total { get; set; }
 06    public List<GetWebhookSubscriptionsItemOut> Items { get; set; } = [];
 7
 8    public static IEnumerable<(string, GetWebhookSubscriptionsOut)> GetExamples() =>
 09    [
 010        ("Exemplo",
 011        new GetWebhookSubscriptionsOut
 012        {
 013            Total = 1,
 014            Items =
 015            [
 016                new GetWebhookSubscriptionsItemOut
 017                {
 018                    Id = 1,
 019                    Name = "Aluno criado",
 020                    Url = "https://webhook.site/my-webhook",
 021                    IsActive = true,
 022                    Events = [WebhookEventType.StudentCreated],
 023                    CreatedAt = DateTime.UtcNow,
 024                },
 025            ],
 026        }),
 027    ];
 28}
 29
 30public class GetWebhookSubscriptionsItemOut
 31{
 32    public int Id { get; set; }
 33    public string Name { get; set; }
 34    public string Url { get; set; }
 35    public bool IsActive { get; set; }
 36    public List<WebhookEventType> Events { get; set; }
 37    public DateTime CreatedAt { get; set; }
 38}