< Summary

Information
Class: Elsa.Identity.Options.AdminUserProviderOptions
Assembly: Elsa.Identity
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Options/AdminUserProviderOptions.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 27
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
get_UserId()100%11100%
get_UserName()100%11100%
get_Password()100%11100%
get_Roles()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Options/AdminUserProviderOptions.cs

#LineLine coverage
 1namespace Elsa.Identity.Options;
 2
 3/// <summary>
 4/// Options for the built-in admin user provider.
 5/// </summary>
 6public class AdminUserProviderOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the user ID assigned to the configured admin user.
 10    /// </summary>
 611    public string UserId { get; set; } = "admin";
 12
 13    /// <summary>
 14    /// Gets or sets the admin user name to accept. Leave empty to disable the provider.
 15    /// </summary>
 1216    public string UserName { get; set; } = "";
 17
 18    /// <summary>
 19    /// Gets or sets the admin password to accept. Leave empty to disable the provider.
 20    /// </summary>
 1021    public string Password { get; set; } = "";
 22
 23    /// <summary>
 24    /// Gets or sets the roles assigned to the configured admin user.
 25    /// </summary>
 626    public ICollection<string> Roles { get; set; } = ["admin"];
 27}