< Summary

Information
Class: Elsa.Workflows.Management.Entities.WorkflowDefinitionRegistryGeneration
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Entities/WorkflowDefinitionRegistryGeneration.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 17
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_TenantId()100%11100%
get_Generation()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Entities/WorkflowDefinitionRegistryGeneration.cs

#LineLine coverage
 1namespace Elsa.Workflows.Management.Entities;
 2
 3/// <summary>
 4/// Stores the latest workflow-definition registry generation for a tenant.
 5/// </summary>
 6public class WorkflowDefinitionRegistryGeneration
 7{
 8    /// <summary>
 9    /// The tenant ID, or <see cref="Elsa.Common.Multitenancy.Tenant.AgnosticTenantId"/> for tenant-agnostic definitions
 10    /// </summary>
 1611    public string TenantId { get; set; } = string.Empty;
 12
 13    /// <summary>
 14    /// The latest generation observed for the tenant.
 15    /// </summary>
 816    public long Generation { get; set; }
 17}

Methods/Properties

get_TenantId()
get_Generation()