• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / FluentCommand / 16305279797

15 Jul 2025 10:01PM UTC coverage: 54.995% (+0.04%) from 54.951%
16305279797

push

github

pwelter34
Update ImportProcessorTests.cs

1718 of 3630 branches covered (47.33%)

Branch coverage included in aggregate %.

4365 of 7431 relevant lines covered (58.74%)

230.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/FluentCommand.SqlServer/ImportServiceCollectionExtensions.cs
1
using FluentCommand.Import;
2

3
using Microsoft.Extensions.DependencyInjection;
4
using Microsoft.Extensions.DependencyInjection.Extensions;
5

6
namespace FluentCommand;
7

8
/// <summary>
9
/// Provides extension methods for registering FluentCommand import services with an <see cref="IServiceCollection"/>.
10
/// </summary>
11
public static class ImportServiceCollectionExtensions
12
{
13
    /// <summary>
14
    /// Registers FluentCommand import services and related dependencies with the specified <see cref="IServiceCollection"/>.
15
    /// </summary>
16
    /// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
17
    /// <returns>
18
    /// The same <see cref="IServiceCollection"/> instance so that additional calls can be chained.
19
    /// </returns>
20
    /// <remarks>
21
    /// This method registers the following services:
22
    /// <list type="bullet">
23
    /// <item><description><see cref="ImportValidator"/> as a transient service.</description></item>
24
    /// <item><description><see cref="IImportProcessor"/> as a transient service implemented by <see cref="ImportProcessor"/>.</description></item>
25
    /// </list>
26
    /// </remarks>
27
    public static IServiceCollection AddFluentImport(this IServiceCollection services)
28
    {
29
        // validator shared for import scope
30
        services.TryAddScoped<ImportValidator>();
×
31
        services.TryAddKeyedScoped<IImportValidator, ImportValidator>(nameof(ImportValidator));
×
32

33
        services.TryAddTransient<IImportProcessor, ImportProcessor>();
×
34

35
        return services;
×
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc