using EnvelopeGenerator.Application.Contracts.Repositories; using EnvelopeGenerator.Application.Extensions; using EnvelopeGenerator.Infrastructure.Repositories; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Configuration; namespace EnvelopeGenerator.Infrastructure; public static class DIExtensions { public static IServiceCollection AddEnvelopeGeneratorRepositories(this IServiceCollection services) { services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); services.TryAddScoped(); return services; } public static IServiceCollection AddEnvelopeGenerator(this IServiceCollection services, IConfiguration configuration) => services .AddEnvelopeGeneratorRepositories() .AddEnvelopeGeneratorServices(configuration); }