< Summary

Information
Class: Syki.Back.Features.Cross.SendResetPasswordToken.ResetPasswordToken
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Cross/SendResetPasswordToken/ResetPasswordToken.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 25
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_UserId()100%11100%
get_Token()100%11100%
get_CreatedAt()100%11100%
get_UsedAt()100%11100%
.ctor(...)100%11100%
Use()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Cross/SendResetPasswordToken/ResetPasswordToken.cs

#LineLine coverage
 1namespace Syki.Back.Features.Cross.SendResetPasswordToken;
 2
 3public class ResetPasswordToken
 4{
 6935    public Guid Id { get; set; }
 6196    public Guid UserId { get; set; }
 6197    public string Token { get; set; }
 5028    public DateTime CreatedAt { get; set; }
 1119    public DateTime? UsedAt { get; set; }
 10
 50111    public ResetPasswordToken(
 50112        Guid userId,
 50113        string token
 50114    ) {
 50115        Id = Guid.NewGuid();
 50116        UserId = userId;
 50117        Token = token;
 50118        CreatedAt = DateTime.Now;
 50119    }
 20
 21    public void Use()
 22    {
 10923        UsedAt = DateTime.Now;
 10924    }
 25}