< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CreateStudent.SendStudentWelcomeEmailCommand
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateStudent/SendStudentWelcomeEmailCommand.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
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
get_InstitutionId()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")]
 8704public record SendStudentWelcomeEmailCommand(Guid InstitutionId, Guid UserId) : ICommand;
 5
 6public class SendStudentWelcomeEmailCommandHandler(SykiDbContext ctx) : ICommandHandler<SendStudentWelcomeEmailCommand>
 7{
 8    public async Task Handle(CommandId commandId, SendStudentWelcomeEmailCommand command)
 9    {
 10        var student = await ctx.Students
 11            .Where(x => x.Id == command.InstitutionId)
 12            .FirstOrDefaultAsync();
 13    }
 14}

Methods/Properties

get_InstitutionId()