< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CreateNotification.Notification
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateNotification/Notification.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 34
Uncovered lines: 0
Coverable lines: 34
Total lines: 45
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_InstitutionId()100%11100%
get_Title()100%11100%
get_Description()100%11100%
get_Timeless()100%11100%
get_Target()100%11100%
get_CreatedAt()100%11100%
get_Users()100%11100%
get_Views()100%11100%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateNotification/Notification.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateNotification;
 2
 3public class Notification
 4{
 4365    public Guid Id { get; set; }
 2506    public Guid InstitutionId { get; set; }
 3107    public string Title { get; set; }
 3108    public string Description { get; set; }
 2809    public bool Timeless { get; set; }
 28010    public UsersGroup Target { get; set; }
 30411    public DateTime CreatedAt { get; set; }
 812    public List<UserNotification> Users { get; set; }
 13
 3814    public string Views { get; set; }
 15
 24816    public Notification(
 24817        Guid institutionId,
 24818        string title,
 24819        string description,
 24820        UsersGroup target,
 24821        bool timeless
 24822    ) {
 24823        Id = Guid.CreateVersion7();
 24824        InstitutionId = institutionId;
 24825        Title = title;
 24826        Description = description;
 24827        Target = target;
 24828        Timeless = timeless;
 24829        CreatedAt = DateTime.UtcNow;
 24830    }
 31
 32    public NotificationOut ToOut()
 33    {
 3034        return new()
 3035        {
 3036            Id = Id,
 3037            Title = Title,
 3038            Description = Description,
 3039            Target = Target,
 3040            Timeless = Timeless,
 3041            CreatedAt = CreatedAt,
 3042            Views = Views,
 3043        };
 44    }
 45}