presence/presence_api/ServiceExtensions/ServiceExtensions.cs
2024-11-14 12:06:54 +03:00

27 lines
712 B
C#

using data.Repository;
using domain.UseCase;
public static class ServiceExtensions
{
public static void ConfigurateGroup(this IServiceCollection services)
{
services
.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
.AddScoped<GroupUseCase>();
}
public static void ConfigurateUser(this IServiceCollection services)
{
services
.AddScoped<IUserRepository, SQLUserRepositoryImpl>()
.AddScoped<UserUseCase>();
}
public static void ConfiguratePresence(this IServiceCollection services)
{
services
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
.AddScoped<UseCaseGeneratePresence>();
}
}