< Summary

Information
Class: Elsa.Identity.Entities.Application
Assembly: Elsa.Identity
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Entities/Application.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 44
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_ClientId()100%210%
get_HashedClientSecret()100%210%
get_HashedClientSecretSalt()100%210%
get_Name()100%210%
get_HashedApiKey()100%210%
get_HashedApiKeySalt()100%210%
get_Roles()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Entities/Application.cs

#LineLine coverage
 1using Elsa.Common.Entities;
 2
 3namespace Elsa.Identity.Entities;
 4
 5/// <summary>
 6/// Represents an application.
 7/// </summary>
 8public class Application : Entity
 9{
 10    /// <summary>
 11    /// The client ID.
 12    /// </summary>
 013    public string ClientId { get; set; } = null!;
 14
 15    /// <summary>
 16    /// The hashed client secret.
 17    /// </summary>
 018    public string HashedClientSecret { get; set; } = null!;
 19
 20    /// <summary>
 21    /// The hashed client secret salt.
 22    /// </summary>
 023    public string HashedClientSecretSalt { get; set; } = null!;
 24
 25    /// <summary>
 26    /// Gets or sets the name.
 27    /// </summary>
 028    public string Name { get; set; } = null!;
 29
 30    /// <summary>
 31    /// Gets or sets the hashed password.
 32    /// </summary>
 033    public string HashedApiKey { get; set; } = null!;
 34
 35    /// <summary>
 36    /// Gets or sets the hashed password salt.
 37    /// </summary>
 038    public string HashedApiKeySalt { get; set; } = null!;
 39
 40    /// <summary>
 41    /// Gets or sets the roles.
 42    /// </summary>
 043    public ICollection<string> Roles { get; set; } = new List<string>();
 44}