< Summary - Estud

Information
Class: Estud.Back.Features.Identity.UpdateSsoConfiguration.UpdateSsoConfigurationIn
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/UpdateSsoConfiguration/UpdateSsoConfigurationIn.cs
Tag: 114_29044117136
Line coverage
33%
Covered lines: 6
Uncovered lines: 12
Coverable lines: 18
Total lines: 25
Line coverage: 33.3%
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
get_ProviderType()100%11100%
get_Authority()100%11100%
get_ClientId()100%11100%
get_ClientSecret()100%11100%
get_IsActive()100%11100%
get_RequireSso()100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/UpdateSsoConfiguration/UpdateSsoConfigurationIn.cs

#LineLine coverage
 1namespace Estud.Back.Features.Identity.UpdateSsoConfiguration;
 2
 3public class UpdateSsoConfigurationIn : IApiDto<UpdateSsoConfigurationIn>
 4{
 1005    public SsoProviderType ProviderType { get; set; }
 1106    public string Authority { get; set; }
 1187    public string ClientId { get; set; }
 848    public string? ClientSecret { get; set; }
 829    public bool IsActive { get; set; }
 8210    public bool RequireSso { get; set; }
 11
 12    public static IEnumerable<(string Name, UpdateSsoConfigurationIn Value)> GetExamples() =>
 013    [
 014        ("Azure AD",
 015        new UpdateSsoConfigurationIn
 016        {
 017            ProviderType = SsoProviderType.AzureAd,
 018            Authority = "https://login.microsoftonline.com/tenant-id/v2.0",
 019            ClientId = "00000000-0000-0000-0000-000000000000",
 020            ClientSecret = null,
 021            IsActive = true,
 022            RequireSso = false,
 023        }),
 024    ];
 25}