using Zurnal.Domain.UseCase; using Microsoft.Extensions.DependencyInjection; using UI; using Data.Repository; IServiceCollection services = new ServiceCollection(); services .AddDbContext() .AddSingleton() .AddSingleton() .AddSingleton(); var serviceProvider = services.BuildServiceProvider(); GroupConsol groupUI = serviceProvider.GetService(); groupUI.AddGroup();