< Summary - Estud

Information
Class: Estud.Back.Features.Webhooks.GetWebhookCalls.GetWebhookCallsOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookCalls/GetWebhookCallsOut.cs
Tag: 114_29044117136
Line coverage
17%
Covered lines: 4
Uncovered lines: 19
Coverable lines: 23
Total lines: 39
Line coverage: 17.3%
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%11100%
get_Page()100%11100%
get_PageSize()100%11100%
get_Items()100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookCalls/GetWebhookCallsOut.cs

#LineLine coverage
 1namespace Estud.Back.Features.Webhooks.GetWebhookCalls;
 2
 3public class GetWebhookCallsOut : IApiDto<GetWebhookCallsOut>
 4{
 405    public int Total { get; set; }
 326    public int Page { get; set; }
 327    public int PageSize { get; set; }
 688    public List<GetWebhookCallsItemOut> Items { get; set; } = [];
 9
 10    public static IEnumerable<(string, GetWebhookCallsOut)> GetExamples() =>
 011    [
 012        ("Exemplo", new GetWebhookCallsOut
 013        {
 014            Total = 1,
 015            Page = 1,
 016            PageSize = 20,
 017            Items =
 018            [
 019                new GetWebhookCallsItemOut
 020                {
 021                    Id = 1,
 022                    EventType = WebhookEventType.StudentCreated,
 023                    Status = WebhookCallStatus.Success,
 024                    AttemptsCount = 1,
 025                    CreatedAt = DateTime.UtcNow,
 026                },
 027            ],
 028        }),
 029    ];
 30}
 31
 32public class GetWebhookCallsItemOut
 33{
 34    public int Id { get; set; }
 35    public WebhookEventType EventType { get; set; }
 36    public WebhookCallStatus Status { get; set; }
 37    public int AttemptsCount { get; set; }
 38    public DateTime CreatedAt { get; set; }
 39}