< Summary

Information
Class: Elsa.Common.Multitenancy.TenantsProviderExtensions
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Multitenancy/Extensions/TenantsProviderExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
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
FindByIdAsync()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Multitenancy/Extensions/TenantsProviderExtensions.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2
 3namespace Elsa.Common.Multitenancy;
 4
 5[UsedImplicitly]
 6public static class TenantsProviderExtensions
 7{
 8    public static async Task<Tenant?> FindByIdAsync(this ITenantsProvider tenantsProvider, string id, CancellationToken 
 9    {
 010        var filter = new TenantFilter
 011        {
 012            Id = id
 013        };
 014        return await tenantsProvider.FindAsync(filter, cancellationToken);
 015    }
 16}

Methods/Properties

FindByIdAsync()