< Summary - Estud

Information
Class: Estud.Back.Features.Webhooks.GetWebhookSubscriptions.GetWebhookSubscriptionsItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookSubscriptions/GetWebhookSubscriptionsOut.cs
Tag: 114_29044117136
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 40
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_Name()100%11100%
get_Url()100%11100%
get_IsActive()100%11100%
get_Events()100%11100%
get_CustomHeaders()100%11100%
get_CreatedAt()100%11100%

File(s)

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

#LineLine coverage
 1namespace Estud.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                    CustomHeaders = new() { ["Estud-AuthToken"] = "6r4g654rs6g4we6f4qw684f68qwf4" },
 24                    CreatedAt = DateTime.UtcNow,
 25                },
 26            ],
 27        }),
 28    ];
 29}
 30
 31public class GetWebhookSubscriptionsItemOut
 32{
 1233    public int Id { get; set; }
 1834    public string Name { get; set; }
 1235    public string Url { get; set; }
 1236    public bool IsActive { get; set; }
 1637    public List<WebhookEventType> Events { get; set; }
 2038    public Dictionary<string, string> CustomHeaders { get; set; } = [];
 1239    public DateTime CreatedAt { get; set; }
 40}