< Summary

Information
Class: LifeChart.Application.DependencyInjection
Assembly: LifeChart.Application
File(s): /home/runner/work/lifechart/lifechart/src/LifeChart.Application/DependencyInjection.cs
Tag: 113_29159449707
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 34
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
AddApplication(...)100%210%

File(s)

/home/runner/work/lifechart/lifechart/src/LifeChart.Application/DependencyInjection.cs

#LineLine coverage
 1using LifeChart.Application.UseCases.Backup;
 2using LifeChart.Application.UseCases.Crisis;
 3using LifeChart.Application.UseCases.Entries;
 4using LifeChart.Application.UseCases.Medications;
 5using LifeChart.Application.UseCases.Pdf;
 6using LifeChart.Domain.Services;
 7using Microsoft.Extensions.DependencyInjection;
 8
 9namespace LifeChart.Application;
 10
 11public static class DependencyInjection
 12{
 13    public static IServiceCollection AddApplication(this IServiceCollection services)
 14    {
 015        services.AddScoped<CrisisThresholdService>();
 16
 017        services.AddScoped<SaveDailyEntryUseCase>();
 018        services.AddScoped<GetTodayEntryUseCase>();
 019        services.AddScoped<GetChartDataUseCase>();
 20
 021        services.AddScoped<GetActiveMedicationsUseCase>();
 022        services.AddScoped<SaveMedicationUseCase>();
 023        services.AddScoped<DeactivateMedicationUseCase>();
 24
 025        services.AddScoped<ExportPdfUseCase>();
 26
 027        services.AddScoped<CreateBackupUseCase>();
 028        services.AddScoped<RestoreBackupUseCase>();
 29
 030        services.AddScoped<GetCrisisResourcesUseCase>();
 31
 032        return services;
 33    }
 34}