2024-11-16 21:45:57 +00:00
|
|
|
|
using console_ui;
|
|
|
|
|
using data;
|
2024-12-13 05:47:52 +00:00
|
|
|
|
using Data.DAO;
|
2024-11-16 21:45:57 +00:00
|
|
|
|
using data.Repository;
|
|
|
|
|
using domain.Service;
|
2024-11-18 16:36:42 +00:00
|
|
|
|
using domain.UseCase;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2024-11-16 21:45:57 +00:00
|
|
|
|
|
2024-12-13 05:47:52 +00:00
|
|
|
|
//void printAllGroups(IGroupRepository groupRepository)
|
|
|
|
|
//{
|
|
|
|
|
// Console.WriteLine("Groups:");
|
|
|
|
|
// foreach (var item in groupRepository.getAllGroup())
|
|
|
|
|
// {
|
|
|
|
|
// Console.WriteLine(item.Name);
|
|
|
|
|
// }
|
|
|
|
|
//}
|
2024-11-16 21:45:57 +00:00
|
|
|
|
|
2024-12-13 05:47:52 +00:00
|
|
|
|
//IServiceCollection serviceCollection = new ServiceCollection();
|
2024-11-16 21:45:57 +00:00
|
|
|
|
|
2024-12-13 05:47:52 +00:00
|
|
|
|
//serviceCollection
|
|
|
|
|
// .AddDbContext<RemoteDatabaseContext>()
|
|
|
|
|
// .AddSingleton<IGroupRepository, SQLGroupRepository>()
|
|
|
|
|
// .AddSingleton<IGroupUseCase, GroupService>()
|
|
|
|
|
// .AddSingleton<GroupUI>();
|
2024-11-16 21:45:57 +00:00
|
|
|
|
|
2024-12-13 05:47:52 +00:00
|
|
|
|
//var serviceProvider = serviceCollection.BuildServiceProvider();
|
|
|
|
|
//var groupUI = serviceProvider.GetService<GroupUI>();
|
|
|
|
|
//groupUI?.AddGroup();
|
2024-11-16 21:45:57 +00:00
|
|
|
|
|
|
|
|
|
|