< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Providers/StoreBasedApplicationProvider.cs

#LineLine coverage
 1using Elsa.Identity.Contracts;
 2using Elsa.Identity.Entities;
 3using Elsa.Identity.Models;
 4
 5namespace Elsa.Identity.Providers;
 6
 7/// <summary>
 8/// Represents an application provider that uses <see cref="IApplicationStore"/> to find applications.
 9/// </summary>
 10public class StoreBasedApplicationProvider : IApplicationProvider
 11{
 12    private readonly IApplicationStore _applicationStore;
 13
 14    /// <summary>
 15    /// Initializes a new instance of the <see cref="StoreBasedApplicationProvider"/> class.
 16    /// </summary>
 017    public StoreBasedApplicationProvider(IApplicationStore applicationStore)
 18    {
 019        _applicationStore = applicationStore;
 020    }
 21
 22    /// <inheritdoc />
 23    public async Task<Application?> FindAsync(ApplicationFilter filter, CancellationToken cancellationToken = default)
 24    {
 025        return await _applicationStore.FindAsync(filter, cancellationToken);
 026    }
 27}