< Summary

Information
Class: MRA.DependencyInjection.Startup.ServicesStartup
Assembly: MRA.DependencyInjection
File(s): D:\a\MiguelRomerART\MiguelRomerART\MRA.DependencyInjection\Startup\ServicesStartup.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 37
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
AddCustomServices(...)100%11100%

File(s)

D:\a\MiguelRomerART\MiguelRomerART\MRA.DependencyInjection\Startup\ServicesStartup.cs

#LineLine coverage
 1using Microsoft.Extensions.DependencyInjection;
 2using MRA.Services;
 3using MRA.Services.Excel.Interfaces;
 4using MRA.Services.Excel;
 5using MRA.Services.Models.Collections;
 6using MRA.Services.Models.Drawings;
 7using MRA.Services.Models.Inspirations;
 8using MRA.Services.RemoteConfig;
 9using MRA.Services.Storage;
 10using Microsoft.Extensions.Configuration;
 11using MRA.Services.UserInput;
 12using MRA.Services.Backup.Export;
 13using MRA.Services.Backup.Import;
 14
 15namespace MRA.DependencyInjection.Startup;
 16
 17public static class ServicesStartup
 18{
 19    public static void AddCustomServices(this IServiceCollection services)
 20    {
 121        services.AddAzureAppConfiguration();
 22
 123        services.AddSingleton<IExcelService, ExcelService>();
 124        services.AddSingleton<IStorageService, StorageService>();
 125        services.AddSingleton<IRemoteConfigService, RemoteConfigService>();
 26
 127        services.AddSingleton<IImportService, ImportService>();
 128        services.AddSingleton<IExportService, ExportService>();
 129        services.AddSingleton<IUserInputService, UserInputService>();
 30
 131        services.AddSingleton<ICollectionService, CollectionService>();
 132        services.AddSingleton<IDrawingService, DrawingService>();
 133        services.AddSingleton<IInspirationService, InspirationService>();
 34
 135        services.AddSingleton<IAppService, AppService>();
 136    }
 37}