Esempio n. 1
0
 public UsersController(
     IUsersService usersService,
     IEmailService emailService,
     IChatsService chatsService,
     IStudentTutorsService studentTutorsService)
 {
     _usersService         = usersService;
     _emailService         = emailService;
     _chatsService         = chatsService;
     _studentTutorsService = studentTutorsService;
 }
Esempio n. 2
0
 public ModulesController(
     IModulesService modulesService,
     ITutoringApplicationsService tutoringApplicationsService,
     IUsersService usersService,
     IStudentTutorsService studentTutorsService,
     IAssignmentsService assignmentsService)
 {
     _modulesService = modulesService;
     _tutoringApplicationsService = tutoringApplicationsService;
     _usersService         = usersService;
     _studentTutorsService = studentTutorsService;
     _assignmentsService   = assignmentsService;
 }
Esempio n. 3
0
        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
                );
        }