< Summary

Information
Class: Elsa.Persistence.EFCore.Extensions.TenantExtensions
Assembly: Elsa.Persistence.EFCore.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/Extensions/TenantExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 11
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
GetConnectionString(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/Extensions/TenantExtensions.cs

#LineLine coverage
 1using Elsa.Common.Multitenancy;
 2
 3namespace Elsa.Persistence.EFCore.Extensions;
 4
 5public static class TenantExtensions
 6{
 7    public static string? GetConnectionString(this Tenant tenant, string name)
 8    {
 09        return tenant.Configuration.GetSection("ConnectionStrings")[name];
 10    }
 11}