< Summary - Estud

Information
Class: Estud.Back.Features.Notifications.GetInstitutionNotifications.GetInstitutionNotificationsItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Notifications/GetInstitutionNotifications/GetInstitutionNotificationsOut.cs
Tag: 114_29044117136
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 43
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_Title()100%210%
get_Description()100%210%
get_CreatedAt()100%210%
get_Recipients()100%210%
get_Viewed()100%210%
get_ViewRate()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Notifications/GetInstitutionNotifications/GetInstitutionNotificationsOut.cs

#LineLine coverage
 1namespace Estud.Back.Features.Notifications.GetInstitutionNotifications;
 2
 3public class GetInstitutionNotificationsOut : IApiDto<GetInstitutionNotificationsOut>
 4{
 5    public int Total { get; set; }
 6    public int Page { get; set; }
 7    public int PageSize { get; set; }
 8    public List<GetInstitutionNotificationsItemOut> Items { get; set; } = [];
 9
 10    public static IEnumerable<(string, GetInstitutionNotificationsOut)> GetExamples() =>
 11    [
 12        ("Exemplo", new GetInstitutionNotificationsOut()
 13        {
 14            Total = 1,
 15            Page = 1,
 16            PageSize = 20,
 17            Items =
 18            [
 19                new GetInstitutionNotificationsItemOut
 20                {
 21                    Id = 1,
 22                    Title = "Recesso acadêmico",
 23                    Description = "Não haverá aulas na próxima semana.",
 24                    CreatedAt = new DateTime(2026, 1, 1, 12, 0, 0),
 25                    Recipients = 100,
 26                    Viewed = 75,
 27                    ViewRate = 75M,
 28                },
 29            ],
 30        }),
 31    ];
 32}
 33
 34public class GetInstitutionNotificationsItemOut
 35{
 036    public int Id { get; set; }
 037    public string Title { get; set; }
 038    public string Description { get; set; }
 039    public DateTime CreatedAt { get; set; }
 040    public int Recipients { get; set; }
 041    public int Viewed { get; set; }
 042    public decimal ViewRate { get; set; }
 43}