< Summary - Syki

Information
Class: Syki.Back.Database.Identity.SsoAllowedDomainDbConfig
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Database/Identity/SsoAllowedDomainDbConfig.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
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
Configure(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Database/Identity/SsoAllowedDomainDbConfig.cs

#LineLine coverage
 1using Syki.Back.Domain.Identity;
 2
 3namespace Syki.Back.Database.Identity;
 4
 5public class SsoAllowedDomainDbConfig : IEntityTypeConfiguration<SsoAllowedDomain>
 6{
 7    public void Configure(EntityTypeBuilder<SsoAllowedDomain> entity)
 8    {
 49        entity.ToTable("sso_allowed_domains", DbSchemas.Syki);
 10
 411        entity.HasKey(e => e.Domain);
 412        entity.Property(e => e.Domain).ValueGeneratedNever();
 13
 414        entity.HasOne<SsoConfiguration>()
 415            .WithMany(c => c.AllowedDomains)
 416            .HasPrincipalKey(c => c.Id)
 417            .HasForeignKey(e => e.SsoConfigurationId);
 418    }
 19}