using Microsoft.Extensions.DependencyInjection; using ProximaContracts.Application.Contracts.Services; using ProximaContracts.Application.Rates.Services; using ProximaContracts.Domain.Contracts.Mappings; using ProximaContracts.Infrastructure.Rpositories.Contracts; using ProximaContracts.Infrastructure.Rpositories.Rates; namespace ProximaContracts.Application { public static class IoCConfiguration { public static IServiceCollection AddApplicationDependencies(this IServiceCollection services) { AddServices(services); AddRepositories(services); AddAutommaperProfiles(services); return services; } private static void AddServices(IServiceCollection services) { services.AddScoped(); services.AddScoped(); } private static void AddRepositories(IServiceCollection services) { services.AddScoped(); services.AddScoped(); } private static void AddAutommaperProfiles(IServiceCollection services) { services.AddAutoMapper(typeof(ContractProfile).Assembly); services.AddAutoMapper(typeof(RateProfile).Assembly); } } }