< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Class: Microsoft.Extensions.DependencyInjection.InfrastructureRegistration
Assembly: ZhEaIsNsAaBn.Infrastructure.Core
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.Infrastructure.Core/InfrastructureRegistration.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 32
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
AddInfrastructureCore(...)100%11100%
AddInfrastructureCore(...)100%11100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.Infrastructure.Core/InfrastructureRegistration.cs

#LineLine coverage
 1using ZhEaIsNsAaBn.Infrastructure.Core;
 2
 3// ReSharper disable once CheckNamespace
 4namespace Microsoft.Extensions.DependencyInjection;
 5
 6/// <summary>Entry points for registering the infrastructure.</summary>
 7public static class InfrastructureRegistration
 8{
 9    /// <summary>Starts a fluent registration; call <see cref="IInfrastructureBuilder.Build"/> at the end.</summary>
 10    /// <param name="services">The service collection.</param>
 11    /// <returns>The builder.</returns>
 12    /// <exception cref="ArgumentNullException"><paramref name="services"/> is <see langword="null"/>.</exception>
 13    /// <example><code>services.AddInfrastructureCore().WithDbContext&lt;AppDbContext&gt;( o =&gt; o.UseSqlServer( cs ) 
 12814    public static IInfrastructureBuilder AddInfrastructureCore( this IServiceCollection services ) => new Infrastructure
 15
 16    /// <summary>Configures the registration in <paramref name="configure"/>, then builds it.</summary>
 17    /// <param name="services">The service collection.</param>
 18    /// <param name="configure">Records the registrations.</param>
 19    /// <returns>The service collection.</returns>
 20    /// <exception cref="ArgumentNullException">An argument is <see langword="null"/>.</exception>
 21    public static IServiceCollection AddInfrastructureCore( this IServiceCollection services, Action<IInfrastructureBuil
 22    {
 423        ArgumentNullException.ThrowIfNull( configure );
 24
 425        var builder = new InfrastructureBuilder( services );
 26
 27
 428        configure( builder );
 29
 430        return builder.Build();
 31    }
 32}