//private readonly IHttpContextAccessor _httpCtxAccessor; public QuizDataAccessMediator(IMapper mapper, IDbOps <EQuiz> dal /*, IHttpContextAccessor httpCtxAccessor*/) { _mapper = mapper; _dal = dal; //_httpCtxAccessor = httpCtxAccessor; //CurrentUserId = _httpCtxAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier)?.Value; }
public OQuestionTests() { _ctx = ContextBuilder.Ctx; _sut = new OQuestion(_ctx); _model = new EQuestion() { Text = "Thjis is question text" }; }
public OQuizTests() { _ctx = ContextBuilder.Ctx; _sut = new OQuiz(_ctx); _model = new EQuiz() { Name = "Some quiz" }; }
public OAnswerTests() { _ctx = ContextBuilder.Ctx; _sut = new OAnswer(_ctx); _model = new EAnswer() { Text = "I am an another answer", IsCorrect = false }; }
public QuestionDataAccessMediator(IMapper mapper, IDbOps <EQuestion> dal) { _mapper = mapper; _dal = dal; }
public AnswerDataAccessMediator(IMapper mapper, IDbOps <EAnswer> dal) { _mapper = mapper; _dal = dal; }