< Summary

Information
Class: Syki.Daemon.Emails.FakeEmailsService
Assembly: Daemon
File(s): /home/runner/work/syki/syki/Daemon/Emails/FakeEmailsService.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 20
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
.ctor(...)100%11100%
SendResetPasswordEmail()100%11100%
SendUserRegisterEmailConfirmation()100%11100%

File(s)

/home/runner/work/syki/syki/Daemon/Emails/FakeEmailsService.cs

#LineLine coverage
 1using Syki.Daemon.Settings;
 2
 3namespace Syki.Daemon.Emails;
 4
 4625public class FakeEmailsService(EmailSettings settings) : IEmailsService
 6{
 7    public async Task SendResetPasswordEmail(string to, string token)
 8    {
 1919        await Task.Delay(0);
 19110        var link = $"{settings.FrontUrl}/reset-password?token={token}";
 19111        Console.WriteLine($"[LINK -> {link}]");
 19112    }
 13
 14    public async Task SendUserRegisterEmailConfirmation(string to, string token)
 15    {
 29416        await Task.Delay(0);
 29417        var link = $"{settings.FrontUrl}/register-setup?token={token}";
 29418        Console.WriteLine($"[LINK -> {link}]");
 29419    }
 20}