public TutoringSessionsController(
     ITutoringSessionsService tutoringSessionsService,
     IEmailService emailService)
 {
     _tutoringSessionsService = tutoringSessionsService;
     _emailService            = emailService;
 }
        public TutoringSessionsServiceTests()
        {
            var setup = new UnitTestSetup();

            _userManager = setup.UserManager;
            _context     = setup.Context;

            _currentUserServiceMock = new Mock <ICurrentUserService>();
            _currentUserServiceMock
            .Setup(s => s.GetUserId())
            .Returns(setup.UserManager.Users.First(u => u.Email == "*****@*****.**").Id);

            _hubsServiceMock = new Mock <IHubsService>();

            _tutoringSessionsService = new TutoringSessionsService(
                new TutoringSessionsRepository(setup.Context),
                setup.UserManager,
                _currentUserServiceMock.Object,
                new TimeService(),
                new Mock <IEmailService>().Object,
                _hubsServiceMock.Object
                );
        }