< Summary

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

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateCourseCurriculum/CourseCurriculumConfig.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateCourseCurriculum;
 2
 3public class CourseCurriculumConfig : IEntityTypeConfiguration<CourseCurriculum>
 4{
 5    public void Configure(EntityTypeBuilder<CourseCurriculum> courseCurriculum)
 6    {
 27        courseCurriculum.ToTable("course_curriculums");
 8
 29        courseCurriculum.HasKey(g => g.Id);
 210        courseCurriculum.Property(g => g.Id).ValueGeneratedNever();
 11
 212        courseCurriculum.HasMany(g => g.Disciplines)
 213            .WithMany()
 214            .UsingEntity<CourseCurriculumDiscipline>();
 215    }
 16}