< Summary - Syki

Information
Class: Syki.Back.Features.Notifications.GetNotifications.GetNotificationsItemOut
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: 7
Coverable lines: 7
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_Id()100%210%
get_NotificationType()100%210%
get_Title()100%210%
get_Description()100%210%
get_CreatedAt()100%210%
get_ViewedAt()100%210%
get_Metadata()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{
 7    public int Total { get; set; }
 8    public int Page { get; set; }
 9    public int PageSize { get; set; }
 10    public List<GetNotificationsItemOut> Items { get; set; } = [];
 11
 12    public static IEnumerable<(string, GetNotificationsOut)> GetExamples() =>
 13    [
 14        ("Exemplo", new GetNotificationsOut()
 15        {
 16            Total = 1,
 17            Page = 1,
 18            PageSize = 20,
 19            Items =
 20            [
 21                new GetNotificationsItemOut
 22                {
 23                    Id = 1,
 24                    NotificationType = NotificationType.NewClassActivity,
 25                    Title = "Nova atividade de classe",
 26                    Description = "Uma nova atividade foi adicionada à sua turma.",
 27                    CreatedAt = new DateTime(2026, 1, 1, 12, 0, 0),
 28                    ViewedAt = null,
 29                },
 30            ],
 31        }),
 32    ];
 33}
 34
 35public class GetNotificationsItemOut
 36{
 037    public int Id { get; set; }
 038    public NotificationType NotificationType { get; set; }
 039    public string Title { get; set; }
 040    public string Description { get; set; }
 041    public DateTime CreatedAt { get; set; }
 042    public DateTime? ViewedAt { get; set; }
 043    public JsonDocument? Metadata { get; set; }
 44}