presence/Demo/Program.cs

23 lines
719 B
C#
Raw Normal View History

2024-10-21 12:42:00 +00:00
using Demo.Data.Repository;
using Demo.Domain.UseCase;
using Demo.UI;
2024-10-25 08:47:11 +00:00
using System;
2024-10-21 12:42:00 +00:00
class Program
{
static void Main(string[] args)
{
var groupRepo = new GroupRepositoryImpl();
2024-10-25 08:47:11 +00:00
var attendanceRepo = new AttendanceRepositoryImpl();
2024-10-21 12:42:00 +00:00
var userRepo = new UserRepositoryImpl();
2024-10-25 08:47:11 +00:00
2024-10-21 12:42:00 +00:00
var groupUseCase = new GroupUseCase(groupRepo);
2024-10-25 08:47:11 +00:00
var attendanceUseCase = new AttendanceUseCase(attendanceRepo);
2024-10-21 12:42:00 +00:00
var userUseCase = new UserUseCase(userRepo, groupRepo);
2024-10-25 08:47:11 +00:00
var presenceGenerator = new UseCaseGeneratePresence(attendanceRepo);
2024-10-21 12:42:00 +00:00
2024-10-25 08:47:11 +00:00
var mainMenu = new MainMenu(userUseCase, groupUseCase, attendanceUseCase, presenceGenerator);
2024-10-21 12:42:00 +00:00
mainMenu.DisplayMenu();
}
2024-10-25 08:47:11 +00:00
}