< Summary - Estud

Information
Class: Estud.Back.Features.Notifications.GetInstitutionNotifications.GetInstitutionNotificationsOut
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: 25
Coverable lines: 25
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_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/GetInstitutionNotifications/GetInstitutionNotificationsOut.cs

#LineLine coverage
 1namespace Estud.Back.Features.Notifications.GetInstitutionNotifications;
 2
 3public class GetInstitutionNotificationsOut : IApiDto<GetInstitutionNotificationsOut>
 4{
 05    public int Total { get; set; }
 06    public int Page { get; set; }
 07    public int PageSize { get; set; }
 08    public List<GetInstitutionNotificationsItemOut> Items { get; set; } = [];
 9
 10    public static IEnumerable<(string, GetInstitutionNotificationsOut)> GetExamples() =>
 011    [
 012        ("Exemplo", new GetInstitutionNotificationsOut()
 013        {
 014            Total = 1,
 015            Page = 1,
 016            PageSize = 20,
 017            Items =
 018            [
 019                new GetInstitutionNotificationsItemOut
 020                {
 021                    Id = 1,
 022                    Title = "Recesso acadêmico",
 023                    Description = "Não haverá aulas na próxima semana.",
 024                    CreatedAt = new DateTime(2026, 1, 1, 12, 0, 0),
 025                    Recipients = 100,
 026                    Viewed = 75,
 027                    ViewRate = 75M,
 028                },
 029            ],
 030        }),
 031    ];
 32}
 33
 34public class GetInstitutionNotificationsItemOut
 35{
 36    public int Id { get; set; }
 37    public string Title { get; set; }
 38    public string Description { get; set; }
 39    public DateTime CreatedAt { get; set; }
 40    public int Recipients { get; set; }
 41    public int Viewed { get; set; }
 42    public decimal ViewRate { get; set; }
 43}