< Summary

Information
Class: Elsa.Tenants.AspNetCore.TenantExtensions
Assembly: Elsa.Tenants.AspNetCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants.AspNetCore/Extensions/TenantExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 16
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
GetRoutePrefix(...)100%210%
GetHost(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants.AspNetCore/Extensions/TenantExtensions.cs

#LineLine coverage
 1using Elsa.Common.Multitenancy;
 2
 3namespace Elsa.Tenants.AspNetCore;
 4
 5public static class TenantExtensions
 6{
 7    public static string? GetRoutePrefix(this Tenant tenant)
 8    {
 09        return tenant.Configuration.GetSection("Http")["Prefix"];
 10    }
 11
 12    public static string? GetHost(this Tenant tenant)
 13    {
 014        return tenant.Configuration.GetSection("Http")["Host"];
 15    }
 16}