< Summary

Information
Class: Elsa.Tenants.Providers.StoreTenantsProvider
Assembly: Elsa.Tenants
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants/Providers/StoreTenantsProvider.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 18
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
.ctor(...)100%210%
ListAsync()100%210%
FindAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants/Providers/StoreTenantsProvider.cs

#LineLine coverage
 1using Elsa.Common.Multitenancy;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Tenants.Providers;
 5
 6[UsedImplicitly]
 07public class StoreTenantsProvider(ITenantStore store) : ITenantsProvider
 8{
 9    public async Task<IEnumerable<Tenant>> ListAsync(CancellationToken cancellationToken = default)
 10    {
 011        return await store.ListAsync(cancellationToken);
 012    }
 13
 14    public Task<Tenant?> FindAsync(TenantFilter filter, CancellationToken cancellationToken = default)
 15    {
 016        return store.FindAsync(filter, cancellationToken);
 17    }
 18}