public UsersController( IUsersService usersService, IEmailService emailService, IChatsService chatsService, IStudentTutorsService studentTutorsService) { _usersService = usersService; _emailService = emailService; _chatsService = chatsService; _studentTutorsService = studentTutorsService; }
public ModulesController( IModulesService modulesService, ITutoringApplicationsService tutoringApplicationsService, IUsersService usersService, IStudentTutorsService studentTutorsService, IAssignmentsService assignmentsService) { _modulesService = modulesService; _tutoringApplicationsService = tutoringApplicationsService; _usersService = usersService; _studentTutorsService = studentTutorsService; _assignmentsService = assignmentsService; }
public StudentTutorsServiceTests() { var setup = new UnitTestSetup(); _context = setup.Context; _userManager = setup.UserManager; _currentUserServiceMock = new Mock <ICurrentUserService>(); _currentUserServiceMock .Setup(s => s.GetUserId()) .Returns(setup.UserManager.Users.First(u => u.Email == "*****@*****.**").Id); _studentTutorsService = new StudentTutorsService( new StudentTutorsRepository(setup.Context), _currentUserServiceMock.Object, new ModuleTutorsRepository(setup.Context), new TutoringSessionsRepository(setup.Context), new StudentTutorIgnoresRepository(setup.Context), new Mock <IHubsService>().Object ); }