< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CreateStudent.SendStudentWelcomeEmailCommandHandler
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateStudent/SendStudentWelcomeEmailCommand.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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/Back/Features/Academic/CreateStudent/SendStudentWelcomeEmailCommand.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateStudent;
 2
 3[CommandDescription("Enviar email de boas-vindas para o novo aluno")]
 4public record SendStudentWelcomeEmailCommand(Guid InstitutionId, Guid UserId) : ICommand;
 5
 1746public class SendStudentWelcomeEmailCommandHandler(SykiDbContext ctx) : ICommandHandler<SendStudentWelcomeEmailCommand>
 7{
 8    public async Task Handle(CommandId commandId, SendStudentWelcomeEmailCommand command)
 9    {
 17410        var student = await ctx.Students
 17411            .Where(x => x.Id == command.InstitutionId)
 17412            .FirstOrDefaultAsync();
 17413    }
 14}