< Summary - Syki

Information
Class: Syki.Back.Shared.CreateNotificationIn
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Shared/Features/Academic/CreateNotification/CreateNotificationIn.cs
Tag: 56_26538939494
Line coverage
0%
Covered lines: 0
Uncovered lines: 19
Coverable lines: 19
Total lines: 28
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_Title()100%210%
get_Description()100%210%
get_TargetUsers()100%210%
get_Timeless()100%210%
.ctor()100%210%
.ctor(...)100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Shared/Features/Academic/CreateNotification/CreateNotificationIn.cs

#LineLine coverage
 1namespace Syki.Back.Shared;
 2
 3public class CreateNotificationIn : IApiDto<CreateNotificationIn>
 4{
 05    public string Title { get; set; }
 06    public string Description { get; set; }
 07    public UsersGroup TargetUsers { get; set; }
 08    public bool Timeless { get; set; }
 9
 010    public CreateNotificationIn() {}
 11
 012    public CreateNotificationIn(
 013        string title,
 014        string description,
 015        UsersGroup targetUsers,
 016        bool timeless
 017    ) {
 018        Title = title;
 019        Description = description;
 020        TargetUsers = targetUsers;
 021        Timeless = timeless;
 022    }
 23
 24    public static IEnumerable<(string, CreateNotificationIn)> GetExamples() =>
 025    [
 026        ("Exemplo", new() { }),
 027    ];
 28}