< Summary - Syki

Information
Class: Syki.Back.Features.Notifications.GetNotifications.GetNotificationsOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Notifications/GetNotifications/GetNotificationsOut.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 24
Coverable lines: 24
Total lines: 44
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_Page()100%210%
get_PageSize()100%210%
get_Items()100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Notifications/GetNotifications/GetNotificationsOut.cs

#LineLine coverage
 1using System.Text.Json;
 2
 3namespace Syki.Back.Features.Notifications.GetNotifications;
 4
 5public class GetNotificationsOut : IApiDto<GetNotificationsOut>
 6{
 07    public int Total { get; set; }
 08    public int Page { get; set; }
 09    public int PageSize { get; set; }
 010    public List<GetNotificationsItemOut> Items { get; set; } = [];
 11
 12    public static IEnumerable<(string, GetNotificationsOut)> GetExamples() =>
 013    [
 014        ("Exemplo", new GetNotificationsOut()
 015        {
 016            Total = 1,
 017            Page = 1,
 018            PageSize = 20,
 019            Items =
 020            [
 021                new GetNotificationsItemOut
 022                {
 023                    Id = 1,
 024                    NotificationType = NotificationType.NewClassActivity,
 025                    Title = "Nova atividade de classe",
 026                    Description = "Uma nova atividade foi adicionada à sua turma.",
 027                    CreatedAt = new DateTime(2026, 1, 1, 12, 0, 0),
 028                    ViewedAt = null,
 029                },
 030            ],
 031        }),
 032    ];
 33}
 34
 35public class GetNotificationsItemOut
 36{
 37    public int Id { get; set; }
 38    public NotificationType NotificationType { get; set; }
 39    public string Title { get; set; }
 40    public string Description { get; set; }
 41    public DateTime CreatedAt { get; set; }
 42    public DateTime? ViewedAt { get; set; }
 43    public JsonDocument? Metadata { get; set; }
 44}