< Summary - Estud

Information
Class: Estud.Back.Features.Notifications.GetNotifications.GetNotificationsItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Notifications/GetNotifications/GetNotificationsOut.cs
Tag: 114_29044117136
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 44
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_NotificationType()100%11100%
get_Title()100%11100%
get_Description()100%11100%
get_CreatedAt()100%11100%
get_ViewedAt()100%11100%
get_Metadata()100%11100%

File(s)

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

#LineLine coverage
 1using System.Text.Json;
 2
 3namespace Estud.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{
 637    public int Id { get; set; }
 638    public NotificationType NotificationType { get; set; }
 839    public string Title { get; set; }
 840    public string Description { get; set; }
 641    public DateTime CreatedAt { get; set; }
 842    public DateTime? ViewedAt { get; set; }
 643    public JsonDocument? Metadata { get; set; }
 44}