Пример #1
0
 public GameHub(IGameService gameService, IAnswerService answerService, IApplicationUserService applicationUserService, IUserAnswerService userAnswerService)
 {
     this.gameService            = gameService;
     this.answerService          = answerService;
     this.applicationUserService = applicationUserService;
     this.userAnswerService      = userAnswerService;
 }
Пример #2
0
 public QuestionController(IQuestionService questionService, IQuestionAnswerService questionAnswerService,
                           IUserAnswerService userAnswerService)
 {
     this.QuestionService       = questionService;
     this.QuestionAnswerService = questionAnswerService;
     this.UserAnswerService     = userAnswerService;
 }
Пример #3
0
 public QuizController(
     IQuizService quizService,
     IUserAnswerService userAnswerService)
 {
     this.quizService       = quizService;
     this.userAnswerService = userAnswerService;
 }
Пример #4
0
 public ResultController(IQuestionService questionService, IQuestionAnswerService questionAnswerService,
                         IUserAnswerService userAnswerService, IResultService resultService, ITestService testService)
 {
     this.QuestionService       = questionService;
     this.QuestionAnswerService = questionAnswerService;
     this.UserAnswerService     = userAnswerService;
     this.ResultService         = resultService;
     this.TestService           = testService;
 }
 public HomeController(IMappingProvider mapper, ITestService testService,
                       IUserManagerProvider userManager, IQuestionService questionService,
                       ICategoryService categoryService, IUserTestService userTestService,
                       IUserAnswerService answerService)
 {
     this.mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.testService     = testService ?? throw new ArgumentNullException(nameof(testService));
     this.userManager     = userManager ?? throw new ArgumentNullException(nameof(userManager));
     this.questionService = questionService ?? throw new ArgumentNullException(nameof(questionService));
     this.categoryService = categoryService ?? throw new ArgumentNullException(nameof(categoryService));
     this.userTestService = userTestService ?? throw new ArgumentNullException(nameof(userTestService));
     this.answerService   = answerService ?? throw new ArgumentNullException(nameof(answerService));
 }
Пример #6
0
 public QuizController(IQuizService quizzes,
                       IAnswerService answers,
                       IUserService users,
                       IUserAnswerService userAnswers,
                       IUserStatisticService userStatistics,
                       ICategoryService categories,
                       IQuestionService questions)
 {
     this.quizzes        = quizzes;
     this.answers        = answers;
     this.users          = users;
     this.userAnswers    = userAnswers;
     this.userStatistics = userStatistics;
     this.categories     = categories;
     this.questions      = questions;
 }
Пример #7
0
 public WeiXinController(IUserService userService
                         , IUserAnswerService userAnswerService
                         , IQuestionBankService questionBankService
                         , IPropertyService propertyService
                         , IWebHelper webHelper
                         , HttpContextBase httpContext
                         , IWorkContext workContext
                         , ILogger logger)
 {
     this._logger              = logger;
     this._userService         = userService;
     this._userAnswerService   = userAnswerService;
     this._questionBankService = questionBankService;
     this._propertyService     = propertyService;
     this._webHelper           = webHelper;
     this._httpContext         = httpContext;
     this._workContext         = workContext;
 }
Пример #8
0
        public CustomMessageHandler(Stream inputStream, PostModel postModel
                                    , IUserService userService
                                    , IUserAnswerService userAnswerService
                                    , IQuestionBankService questionBankService
                                    , IPropertyService propertyService
                                    , IWebHelper webHelper
                                    , HttpContextBase httpContext
                                    , IWorkContext workContext
                                    , ILogger logger)
            : base(inputStream, postModel, 0, null)
        {
            //System.Threading.Interlocked.Increment(ref REQUESTNO);

            this._logger              = logger;
            this._userService         = userService;
            this._userAnswerService   = userAnswerService;
            this._questionBankService = questionBankService;
            this._propertyService     = propertyService;
            this._webHelper           = webHelper;
            this._httpContext         = httpContext;
            this._workContext         = workContext;
        }
Пример #9
0
 public UserAnswerController(IUserAnswerService userAnswerService)
 {
     _userAnswerService = userAnswerService;
 }
 public UsersAnswersController(IUnitOfWork unitOfWork, IUserAnswerService userAnswerService)
 {
     this.unitOfWork        = unitOfWork;
     this.userAnswerService = userAnswerService;
 }
Пример #11
0
 public UserAnswerController(IUserAnswerService userAnswerService
                             , HttpRequestBase request)
 {
     this._userAnswerService = userAnswerService;
     this._request           = request;
 }
 public UserAnswerController(IUserAnswerService userAnswerService, IMapper mapper, IOptions <AppSettings> appSettings)
 {
     _userAnswerService = userAnswerService;
     _mapper            = mapper;
     _appSettings       = appSettings.Value;
 }