< Summary

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

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

Methods/Properties

GetExamples()