public AccountController(IHttpContextAccessor httpcontextaccessor, IConfiguration configuration, IHomeController ihomeController, IQuestionController IQuestionController) : base(httpcontextaccessor, configuration)
 {
     _httpcontextaccessor = httpcontextaccessor;
     _config              = configuration;
     _ihomeController     = ihomeController;
     _iQuestionController = IQuestionController;
 }
Esempio n. 2
0
 public QuestionPageViewModel(INavigation nav)
 {
     _questionList          = new List <QuizQuestion>();
     CurrentQuestionAnswers = new List <QuizAnswer>();
     _questionController    = StartUp.ServiceProvider.GetService <IQuestionController>();
     _navigation            = nav;
     _currentQuestionNumber = 1;
     _userScore             = 0;
     _userCanSubmit         = true;
     _quizProgress          = 0;
 }