< Summary

Information
Class: Elsa.Persistence.EFCore.Modules.Identity.IdentityFeatureExtensions
Assembly: Elsa.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Identity/IdentityFeatureExtensions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 18
Line coverage: 100%
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
UseEntityFrameworkCore(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Identity/IdentityFeatureExtensions.cs

#LineLine coverage
 1using Elsa.Identity.Features;
 2
 3namespace Elsa.Persistence.EFCore.Modules.Identity;
 4
 5/// <summary>
 6/// Provides extensions for <see cref="IdentityFeature"/>
 7/// </summary>
 8public static class IdentityFeatureExtensions
 9{
 10    /// <summary>
 11    /// Sets up the EF Core persistence provider for the User, Application and Role stores.
 12    /// </summary>
 13    public static IdentityFeature UseEntityFrameworkCore(this IdentityFeature feature, Action<EFCoreIdentityPersistenceF
 14    {
 115        feature.Module.Configure(configure);
 116        return feature;
 17    }
 18}