xxxproject/Demo/Program.cs
2024-10-14 14:51:48 +03:00

20 lines
487 B
C#

using Demo.Data.Repository;
using Demo.domain.Models;
using Demo.Domain.UseCase;
GroupRepositoryImpl groupRepositoryImpl = new GroupRepositoryImpl();
UserRepositoryImpl userRepositoryImpl = new UserRepositoryImpl();
UserUseCase userUseCase = new UserUseCase(userRepositoryImpl, groupRepositoryImpl);
List<User> users = userUseCase.GetAllUsers;
foreach (var user in users) {
Console.WriteLine($"{user.FIO} группа {user.Group.Name}");
}
userUseCase.
Console.ReadKey();