< Summary

Information
Class: Syki.Daemon.Tasks.SendUserRegisterEmailConfirmationHandler
Assembly: Daemon
File(s): /home/runner/work/syki/syki/Daemon/Tasks/SendUserRegisterEmailConfirmationHandler.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 14
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%
Handle()100%11100%

File(s)

/home/runner/work/syki/syki/Daemon/Tasks/SendUserRegisterEmailConfirmationHandler.cs

#LineLine coverage
 1using Syki.Daemon.Emails;
 2using Syki.Back.Features.Cross.CreatePendingUserRegister;
 3
 4namespace Syki.Daemon.Tasks;
 5
 2946public class SendUserRegisterEmailConfirmationHandler(SykiDbContext ctx, IEmailsService emailsService) : ISykiTaskHandle
 7{
 8    public async Task Handle(SendUserRegisterEmailConfirmation task)
 9    {
 29410        var register = await ctx.UserRegisters.FirstAsync(d => d.Email == task.Email);
 11
 29412        await emailsService.SendUserRegisterEmailConfirmation(register.Email, register.Id.ToString());
 29413    }
 14}