< Summary

Information
Class: Syki.Back.Features.Cross.CreateUser.SykiUser
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Cross/CreateUser/SykiUser.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 23
Uncovered lines: 0
Coverable lines: 23
Total lines: 33
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_InstitutionId()100%11100%
get_Name()100%11100%
get_CreatedAt()100%11100%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Cross/CreateUser/SykiUser.cs

#LineLine coverage
 1namespace Syki.Back.Features.Cross.CreateUser;
 2
 3public class SykiUser : IdentityUser<Guid>
 4{
 21655    public Guid InstitutionId { get; set; }
 21676    public string Name { get; set; }
 13347    public DateTime CreatedAt { get; set; }
 8
 13349    public SykiUser(
 133410        Guid institutionId,
 133411        string name,
 133412        string email,
 133413        string? phoneNumber = null
 133414    ) {
 133415        InstitutionId = institutionId;
 133416        Name = name;
 133417        UserName = email;
 133418        Email = email;
 133419        PhoneNumber = phoneNumber;
 133420        CreatedAt = DateTime.Now;
 133421    }
 22
 23    public UserOut ToOut()
 24    {
 44825        return new()
 44826        {
 44827            Id = Id,
 44828            InstitutionId = InstitutionId,
 44829            Name = Name,
 44830            Email = Email!,
 44831        };
 32    }
 33}