< Summary

Information
Class: Syki.Back.Features.Academic.GetAcademicPeriods.GetAcademicPeriodsExamples
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/GetAcademicPeriods/GetAcademicPeriodsExamples.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 20
Coverable lines: 20
Total lines: 28
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/GetAcademicPeriods/GetAcademicPeriodsExamples.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.GetAcademicPeriods;
 2
 3public class GetAcademicPeriodsExamples : IMultipleExamplesProvider<List<AcademicPeriodOut>>
 4{
 5    public IEnumerable<SwaggerExample<List<AcademicPeriodOut>>> GetExamples()
 6    {
 07        return
 08        [
 09            SwaggerExample.Create<List<AcademicPeriodOut>>(
 010        "Academic periods",
 011        [
 012          new AcademicPeriodOut
 013          {
 014            Id = "2024.1",
 015            StartAt = new DateOnly(2024, 02, 01),
 016            EndAt = new DateOnly(2024, 06, 05),
 017          },
 018          new AcademicPeriodOut
 019          {
 020            Id = "2024.2",
 021            StartAt = new DateOnly(2024, 07, 08),
 022            EndAt = new DateOnly(2024, 12, 10),
 023          }
 024        ]
 025      )
 026    ];
 27    }
 28}

Methods/Properties

GetExamples()