< Summary

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

File(s)

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

#LineLine coverage
 1using Elsa.Features.Services;
 2using Elsa.Tenants.AspNetCore.Features;
 3using Elsa.Tenants.Features;
 4
 5// ReSharper disable once CheckNamespace
 6namespace Elsa.Tenants.Extensions;
 7
 8/// <summary>
 9/// Extensions for <see cref="IModule"/> that installs the <see cref="TenantsFeature"/> feature.
 10/// </summary>
 11public static class ModuleExtensions
 12{
 13    /// <summary>
 14    /// Installs and configures the <see cref="TenantsFeature"/> feature.
 15    /// </summary>
 16    public static IModule UseTenantHttpRouting(this IModule module, Action<MultitenantHttpRoutingFeature>? configure = n
 17    {
 018        module.Configure(configure);
 019        return module;
 20    }
 21}