< Summary

Information
Class: Elsa.Identity.Options.DefaultAdminUserOptions
Assembly: Elsa.Identity
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Options/DefaultAdminUserOptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 27
Line coverage: 0%
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_AdminUserName()100%210%
get_AdminPassword()100%210%
get_AdminRoleName()100%210%
get_AdminRolePermissions()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Identity.Options;
 2
 3/// <summary>
 4/// Represents configuration options for a default admin user, including username, password, role name, and role permiss
 5/// </summary>
 6public class DefaultAdminUserOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the admin user name.
 10    /// </summary>
 011    public string AdminUserName { get; set; } = "";
 12
 13    /// <summary>
 14    /// Gets or sets the admin user password.
 15    /// </summary>
 016    public string AdminPassword { get; set; } = "";
 17
 18    /// <summary>
 19    /// Gets or sets the admin role name.
 20    /// </summary>
 021    public string AdminRoleName { get; set; } = "admin";
 22
 23    /// <summary>
 24    /// Gets or sets the admin role permissions.
 25    /// </summary>
 026    public ICollection<string> AdminRolePermissions { get; set; } = ["*"];
 27}