< Summary - Estud

Information
Class: Estud.Back.Features.Notifications.CreateNotification.CreateNotificationIn
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Notifications/CreateNotification/CreateNotificationIn.cs
Tag: 114_29044117136
Line coverage
81%
Covered lines: 13
Uncovered lines: 3
Coverable lines: 16
Total lines: 25
Line coverage: 81.2%
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_Title()100%11100%
get_Description()100%11100%
get_TargetUsers()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Notifications/CreateNotification/CreateNotificationIn.cs

#LineLine coverage
 1namespace Estud.Back.Features.Notifications.CreateNotification;
 2
 3public class CreateNotificationIn : IApiDto<CreateNotificationIn>
 4{
 1365    public string Title { get; set; }
 1366    public string Description { get; set; }
 1327    public UsersGroup TargetUsers { get; set; }
 8
 449    public CreateNotificationIn() {}
 10
 2611    public CreateNotificationIn(
 2612        string title,
 2613        string description,
 2614        UsersGroup targetUsers
 2615    ) {
 2616        Title = title;
 2617        Description = description;
 2618        TargetUsers = targetUsers;
 2619    }
 20
 21    public static IEnumerable<(string, CreateNotificationIn)> GetExamples() =>
 022    [
 023        ("Exemplo", new("Aviso importante", "Descrição do aviso importante.", UsersGroup.All)),
 024    ];
 25}