< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CreateNotification.UserNotification
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateNotification/UserNotification.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 27
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_UserId()100%11100%
get_NotificationId()100%11100%
get_Notification()100%11100%
get_ViewedAt()100%11100%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

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

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateNotification;
 2
 3public class UserNotification
 4{
 1785    public Guid UserId { get; set; }
 1946    public Guid NotificationId { get; set; }
 627    public Notification Notification { get; set; }
 288    public DateTime? ViewedAt { get; set; }
 9
 17210    public UserNotification(Guid userId, Guid notificationId)
 11    {
 17212        UserId = userId;
 17213        NotificationId = notificationId;
 17214    }
 15
 16    public UserNotificationOut ToOut()
 17    {
 2018        return new()
 2019        {
 2020            NotificationId = NotificationId,
 2021            Title = Notification.Title,
 2022            Description = Notification.Description,
 2023            CreatedAt = Notification.CreatedAt,
 2024            ViewedAt = ViewedAt,
 2025        };
 26    }
 27}