using CartWise.Application.Interfaces;
using CartWise.Application.Services;
using Microsoft.Extensions.DependencyInjection;

namespace CartWise.Application;

public static class ApplicationServiceCollectionExtensions
{
    public static IServiceCollection AddApplication(this IServiceCollection services)
    {
        services.AddSingleton(TimeProvider.System);
        services.AddScoped<IHouseholdService, HouseholdService>();
        services.AddScoped<IShoppingListService, ShoppingListService>();
        services.AddScoped<IProductService, ProductService>();

        return services;
    }
}
