prezzens/Demo/Program.cs

22 lines
584 B
C#
Raw Permalink Normal View History

2024-10-19 19:38:28 +00:00
using Demo.Data.Repository;
using Demo.Domain.UseCase;
using Demo.UI;
class Program
{
static void Main(string[] args)
{
var userRepository = new UserRepositoryImpl();
var groupRepository = new GroupRepositoryImpl();
var userUseCase = new UserUseCase(userRepository);
var groupUseCase = new GroupUseCase(groupRepository);
var userConsole = new UserConsole(userUseCase);
var groupConsole = new GroupConsole(groupUseCase);
var mainMenu = new MainMenu(userConsole, groupConsole);
mainMenu.ShowMenu();
}
}