< Summary

Information
Class: Syki.Back.Features.Academic.CreateClass.CreateClassRequestExamples
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateClass/CreateClassRequestExamples.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 26
Coverable lines: 26
Total lines: 34
Line coverage: 0%
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
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateClass/CreateClassRequestExamples.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateClass;
 2
 3public class CreateClassRequestExamples : IMultipleExamplesProvider<CreateClassIn>
 4{
 5    public IEnumerable<SwaggerExample<CreateClassIn>> GetExamples()
 6    {
 07        yield return SwaggerExample.Create(
 08      "Banco de Dados",
 09      new CreateClassIn(
 010        Guid.NewGuid(),
 011        Guid.NewGuid(),
 012        "2024.1",
 013        40,
 014        [
 015          new(Day.Monday, Hour.H07_00, Hour.H10_00),
 016          new(Day.Thursday, Hour.H08_00, Hour.H10_30),
 017        ]
 018      )
 019    );
 20
 021        yield return SwaggerExample.Create(
 022      "Programação Orientada a Objetos",
 023      new CreateClassIn(
 024        Guid.NewGuid(),
 025        Guid.NewGuid(),
 026        "2024.2",
 027        40,
 028        [
 029          new(Day.Tuesday, Hour.H19_15, Hour.H22_00),
 030        ]
 031      )
 032    );
 033    }
 34}

Methods/Properties

GetExamples()