< Summary

Information
Class: Elsa.EndpointSecurityOptions
Assembly: Elsa.Api.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Api.Common/EndpointSecurityOptions.cs
Line coverage
80%
Covered lines: 4
Uncovered lines: 1
Coverable lines: 5
Total lines: 11
Line coverage: 80%
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
.cctor()100%11100%
DisableSecurity()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Api.Common/EndpointSecurityOptions.cs

#LineLine coverage
 1namespace Elsa;
 2
 3public static class EndpointSecurityOptions
 4{
 15    public static string AdminRoleName = "Admin";
 16    public static string ReaderRoleName = "Reader";
 17    public static string WriteRoleName = "Writer";
 18    public static bool SecurityIsEnabled = true;
 9
 010    public static void DisableSecurity() => SecurityIsEnabled = false;
 11}

Methods/Properties

.cctor()
DisableSecurity()