< Summary

Information
Class: Elsa.Common.Multitenancy.Tenant
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Multitenancy/Entities/Tenant.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 28
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_Name()100%11100%
get_Configuration()100%11100%
.cctor()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Multitenancy/Entities/Tenant.cs

#LineLine coverage
 1using Elsa.Common.Entities;
 2using JetBrains.Annotations;
 3using Microsoft.Extensions.Configuration;
 4
 5namespace Elsa.Common.Multitenancy;
 6
 7/// <summary>
 8/// Represents a tenant.
 9/// </summary>
 10[UsedImplicitly]
 11public class Tenant : Entity
 12{
 13    /// <summary>
 14    /// Gets or sets the name.
 15    /// </summary>
 116    public string Name { get; set; } = null!;
 17
 18    /// <summary>
 19    /// Gets or sets the configuration.
 20    /// </summary>
 121    public IConfiguration Configuration { get; set; } = new ConfigurationBuilder().Build();
 22
 123    public static readonly Tenant Default = new()
 124    {
 125        Id = null!,
 126        Name = "Default"
 127    };
 28}