23 lines
718 B
C#
23 lines
718 B
C#
using Data.Repository;
|
|
using Zurnal.Data.Repository;
|
|
using Zurnal.Domain.UseCase;
|
|
using Zurnal.Presence;
|
|
using Zurnal.UI;
|
|
|
|
IServiceCollection services = new ServiceCollection();
|
|
|
|
services
|
|
.AddDbContext<RemoteDateBaseContext>()
|
|
.AddSingleton<IGroupRepository, SQLGroupRepositoryImpl>()
|
|
.AddSingleton<IUserRepository, SQLUserRepositoryImpl>()
|
|
.AddSingleton<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
|
.AddSingleton<UserUseCase>()
|
|
.AddSingleton<GroupUseCase>()
|
|
.AddSingleton<UseCaseGeneratePresence>()
|
|
.AddSingleton<MainMenuUI>();
|
|
|
|
var serviceProvider = services.BuildServiceProvider();
|
|
MainMenuUI mainMenuUI = serviceProvider.GetService<MainMenuUI>();
|
|
|
|
mainMenuUI.DisplayMenu();
|