Beispiel #1
0
 public StatisticsService(QuizerContext context, Auth0ManagementFactory auth0ManagementFactory) : base(context)
 {
     _auth0UsersService         = new Auth0UsersService(auth0ManagementFactory);
     _quizzesRepository         = new QuizzesRepository(context);
     _quizAccessesRepository    = new QuizAccessesRepository(context);
     _solvedQuizRepository      = new SolvedQuizRepository(context);
     _learningQuizzesRepository = new LearningQuizzesRepository(context);
     _quizSessionsRepository    = new QuizSessionsRepository(context);
 }
Beispiel #2
0
 public UsersService(QuizerContext context) : base(context)
 {
     _anonymousUsersRepository  = new AnonymousUsersRepository(context);
     _userSettingsRepository    = new UserSettingsRepository(context);
     _quizAccessesRepository    = new QuizAccessesRepository(context);
     _learningQuizzesRepository = new LearningQuizzesRepository(context);
     _solvedQuizRepository      = new SolvedQuizRepository(context);
     _quizzesRepository         = new QuizzesRepository(context);
 }
Beispiel #3
0
 public QuizzesService(
     QuizerContext context,
     Auth0ManagementFactory auth0ManagementFactory
     ) : base(context)
 {
     _quizzesRepository      = new QuizzesRepository(context);
     _questionsRepository    = new QuestionsRepository(context);
     _quizAccessesRepository = new QuizAccessesRepository(context);
     _auth0UsersService      = new Auth0UsersService(auth0ManagementFactory);
 }
 public SolvingQuizzesService(
     QuizerContext context,
     StatisticsService statisticsService,
     Auth0ManagementFactory auth0ManagementFactory
     ) : base(context)
 {
     _quizzesRepository   = new QuizzesRepository(context);
     _questionsRepository = new QuestionsRepository(context);
     _statisticsService   = statisticsService;
     _auth0UsersService   = new Auth0UsersService(auth0ManagementFactory);
 }
 public LearningQuizzesService(
     QuizerContext context,
     Auth0ManagementFactory auth0ManagementFactory
     ) : base(context)
 {
     _quizzesRepository               = new QuizzesRepository(context);
     _quizAccessesRepository          = new QuizAccessesRepository(context);
     _questionsRepository             = new QuestionsRepository(context);
     _answersRepository               = new AnswersRepository(context);
     _learningQuizzesRepository       = new LearningQuizzesRepository(context);
     _learningQuizQuestionsRepository = new LearningQuizQuestionsRepository(context);
     _userSettingsRepository          = new UserSettingsRepository(context);
     _auth0UsersService               = new Auth0UsersService(auth0ManagementFactory);
 }
Beispiel #6
0
 public QuizAccessesRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
 public QuestionVersionsRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
Beispiel #8
0
 public SolvedQuizRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
Beispiel #9
0
 public QuestionsService(QuizerContext context) : base(context)
 {
     _quizzesRepository   = new QuizzesRepository(context);
     _questionsRepository = new QuestionsRepository(context);
     _answersRepository   = new AnswersRepository(context);
 }
 public UsersController(QuizerContext context, Auth0ManagementFactory auth0ManagementFactory)
 {
     _auth0UsersService = new Auth0UsersService(auth0ManagementFactory);
     _usersService      = new UsersService(context);
 }
 public AnonymousUsersRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
Beispiel #12
0
 public HomeController(QuizerContext context)
 {
     _context = context;
 }
Beispiel #13
0
 public BaseService(QuizerContext context)
 {
     Context = context;
 }
 public UserSettingsRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
Beispiel #15
0
 public AnswerVersionsRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
 public QuizSessionsRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
Beispiel #17
0
 public LearningQuizzesRepository(QuizerContext context) : base(context)
 {
     _context = context;
 }
Beispiel #18
0
 public Repository(QuizerContext context)
 {
     _context  = context;
     _entities = _context.Set <T>();
 }
Beispiel #19
0
 public GenericRepository(QuizerContext context)
 {
     _context = context;
     _dbSet   = context.Set <T>();
 }