| | | 1 | | using LifeChart.Application.UseCases.Backup; |
| | | 2 | | using LifeChart.Application.UseCases.Crisis; |
| | | 3 | | using LifeChart.Application.UseCases.Entries; |
| | | 4 | | using LifeChart.Application.UseCases.Medications; |
| | | 5 | | using LifeChart.Application.UseCases.Pdf; |
| | | 6 | | using LifeChart.Domain.Services; |
| | | 7 | | using Microsoft.Extensions.DependencyInjection; |
| | | 8 | | |
| | | 9 | | namespace LifeChart.Application; |
| | | 10 | | |
| | | 11 | | public static class DependencyInjection |
| | | 12 | | { |
| | | 13 | | public static IServiceCollection AddApplication(this IServiceCollection services) |
| | | 14 | | { |
| | 0 | 15 | | services.AddScoped<CrisisThresholdService>(); |
| | | 16 | | |
| | 0 | 17 | | services.AddScoped<SaveDailyEntryUseCase>(); |
| | 0 | 18 | | services.AddScoped<GetTodayEntryUseCase>(); |
| | 0 | 19 | | services.AddScoped<GetChartDataUseCase>(); |
| | | 20 | | |
| | 0 | 21 | | services.AddScoped<GetActiveMedicationsUseCase>(); |
| | 0 | 22 | | services.AddScoped<SaveMedicationUseCase>(); |
| | 0 | 23 | | services.AddScoped<DeactivateMedicationUseCase>(); |
| | | 24 | | |
| | 0 | 25 | | services.AddScoped<ExportPdfUseCase>(); |
| | | 26 | | |
| | 0 | 27 | | services.AddScoped<CreateBackupUseCase>(); |
| | 0 | 28 | | services.AddScoped<RestoreBackupUseCase>(); |
| | | 29 | | |
| | 0 | 30 | | services.AddScoped<GetCrisisResourcesUseCase>(); |
| | | 31 | | |
| | 0 | 32 | | return services; |
| | | 33 | | } |
| | | 34 | | } |