presence123/Demo/Program.cs
2024-10-30 12:06:35 +03:00

22 lines
600 B
C#

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,groupRepository);
var groupUseCase = new GroupUseCase(groupRepository);
var userConsole = new UserConsole(userUseCase);
var groupConsole = new GroupConsole(groupUseCase);
var mainMenu = new MainMenu(userConsole, groupConsole);
mainMenu.ShowMenu();
}
}