< Summary - Estud

Information
Class: Estud.Back.Features.Webhooks.GetWebhookCalls.GetWebhookCallsItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookCalls/GetWebhookCallsOut.cs
Tag: 114_29044117136
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 39
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_EventType()100%11100%
get_Status()100%11100%
get_AttemptsCount()100%11100%
get_CreatedAt()100%11100%

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{
 5    public int Total { get; set; }
 6    public int Page { get; set; }
 7    public int PageSize { get; set; }
 8    public List<GetWebhookCallsItemOut> Items { get; set; } = [];
 9
 10    public static IEnumerable<(string, GetWebhookCallsOut)> GetExamples() =>
 11    [
 12        ("Exemplo", new GetWebhookCallsOut
 13        {
 14            Total = 1,
 15            Page = 1,
 16            PageSize = 20,
 17            Items =
 18            [
 19                new GetWebhookCallsItemOut
 20                {
 21                    Id = 1,
 22                    EventType = WebhookEventType.StudentCreated,
 23                    Status = WebhookCallStatus.Success,
 24                    AttemptsCount = 1,
 25                    CreatedAt = DateTime.UtcNow,
 26                },
 27            ],
 28        }),
 29    ];
 30}
 31
 32public class GetWebhookCallsItemOut
 33{
 3834    public int Id { get; set; }
 3235    public WebhookEventType EventType { get; set; }
 3236    public WebhookCallStatus Status { get; set; }
 3237    public int AttemptsCount { get; set; }
 3638    public DateTime CreatedAt { get; set; }
 39}