< Summary

Information
Class: Syki.Back.Features.Academic.StartClasses.StartClassesController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/StartClasses/StartClassesController.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 19
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%
Start()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/StartClasses/StartClassesController.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.StartClasses;
 2
 3/// <summary>
 4/// Inicia várias Turmas.
 5/// Após isso, tanto Professores quanto Alunos passam a ter acesso às suas Turmas.
 6/// </summary>
 7[ApiController, AuthAcademic]
 8[EnableRateLimiting("Medium")]
 9[Consumes("application/json"), Produces("application/json")]
 4110public class StartClassesController(StartClassesService service) : ControllerBase
 11{
 12    [HttpPut("academic/classes/start")]
 13    public async Task<IActionResult> Start([FromBody] StartClassesIn data)
 14    {
 4115        var result = await service.Start(User.InstitutionId(), data);
 16
 7917        return result.Match<IActionResult>(_ => NoContent(), BadRequest);
 4118    }
 19}