< Summary - Syki

Information
Class: Syki.Back.Features.Teacher.AddClassActivityNote.StudentClassNote
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Teacher/AddClassActivityNote/StudentClassNote.cs
Tag: 4_16869239191
Line coverage
0%
Covered lines: 0
Uncovered lines: 26
Coverable lines: 26
Total lines: 40
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_Id()100%210%
get_ClassId()100%210%
get_StudentId()100%210%
get_Type()100%210%
get_Note()100%210%
.ctor()100%210%
.ctor(...)100%210%
ToOut()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Teacher/AddClassActivityNote/StudentClassNote.cs

#LineLine coverage
 1namespace Syki.Back.Features.Teacher.AddClassActivityNote;
 2
 3/// <summary>
 4/// Representa uma nota de um aluno em uma turma.
 5/// </summary>
 6public class StudentClassNote : Entity
 7{
 08    public Guid Id { get; set; }
 09    public Guid ClassId { get; set; }
 010    public Guid StudentId { get; set; }
 011    public ClassNoteType Type { get; set; }
 012    public decimal Note { get; set; }
 13
 014    private StudentClassNote() {}
 15
 016    public StudentClassNote(
 017        Guid classId,
 018        Guid studentId,
 019        ClassNoteType examType,
 020        decimal note
 021    ) {
 022        Id = Guid.CreateVersion7();
 023        ClassId = classId;
 024        StudentId = studentId;
 025        Type = examType;
 026        Note = note;
 027    }
 28
 29    public StudentClassNoteOut ToOut()
 30    {
 031        return new()
 032        {
 033            Id = Id,
 034            ClassId = ClassId,
 035            StudentId = StudentId,
 036            Type = Type,
 037            Note = Note,
 038        };
 39    }
 40}