using Microsoft.Extensions.DependencyInjection;
using Postall.Domain;
using Postall.Domain.Services.Contracts;
using Postall.Infra.Services;

namespace BaseDomain.Extensions
{
    public static class ServiceCollectionExtensions
    {
        public static IServiceCollection AddYouTubeServices(this IServiceCollection services)
        {
            services.AddHttpContextAccessor();

            services.AddScoped<IYouTubeServiceChannel, YouTubeServiceChannel>();

            services.AddScoped<IChannelService, ChannelVideoService>();

            services.AddScoped<IChannelYoutubeService, ChannelYoutubeService>();

            services.AddScoped<IVideoYoutubeService, VideoYoutubeService>();

            services.AddScoped<IVideoService, VideoService>();

            return services;
        }
    }
}
