using data.RemoteData; using Data.Repository; using domain; using Microsoft.Extensions.DependencyInjection; using ui; IServiceCollection services = new ServiceCollection(); services .AddDbContext() .AddSingleton() .AddSingleton() .AddSingleton(); var serviceProvider = services.BuildServiceProvider(); GroupUI groupUI = serviceProvider.GetService(); groupUI.AddGroup();