コード例 #1
0
ファイル: RankController.cs プロジェクト: jangocheng/H-Judge
 public RankController(CachedUserManager <UserInfo> userManager, IJudgeService judgeService, IContestService contestService, IGroupService groupService)
 {
     this.userManager    = userManager;
     this.judgeService   = judgeService;
     this.contestService = contestService;
     this.groupService   = groupService;
 }
コード例 #2
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public QuestionController(
     IJudgeService judgeService,
     ISelectService selectService)
 {
     _selectService = selectService;
     _judgeService  = judgeService;
 }
コード例 #3
0
ファイル: HomeController.cs プロジェクト: alphabstc/H-Judge
 public HomeController(UserManager <UserInfo> userManager,
                       SignInManager <UserInfo> signInManager,
                       IJudgeService judgeService)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.judgeService  = judgeService;
 }
コード例 #4
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public StuanswerdetailService(
     IRepository <TbStuanswerdetail> answerRepository,
     IRepository <TbExamquestion> examquestionRepository,
     ISelectService selectService,
     IJudgeService judgeService)
 {
     _answerRepository       = answerRepository;
     _examquestionRepository = examquestionRepository;
     _selectService          = selectService;
     _judgeService           = judgeService;
 }
コード例 #5
0
 public JudgeController(IJudgeService judgeService, IProblemService problemService,
                        IContestService contestService, IGroupService groupService, UserManager <UserInfo> userManager,
                        ILanguageService languageService)
 {
     this.judgeService    = judgeService;
     this.problemService  = problemService;
     this.contestService  = contestService;
     this.groupService    = groupService;
     this.userManager     = userManager;
     this.languageService = languageService;
 }
コード例 #6
0
ファイル: Court.cs プロジェクト: jmmortega/GamesAreSoftware
        public Court(IGameControls gameControls, IPhysicsService physicsService, IJudgeService judgeService) : base(Locator.Get <IContentManagerService>().GetTexture("court"), Vector2.Zero, Color.White)
        {
            _gameControls   = gameControls;
            _physicsService = physicsService;
            _judgeService   = judgeService;

            _leftPaddle  = new LeftPaddle(gameControls, physicsService);
            _rightPaddle = new RightPaddle(gameControls, physicsService);
            _gameBall    = new Ball(physicsService);

            Rectangle = new Rectangle(this.Position.ToPoint(), new Point(Locator.ScreenBounds.Width, Locator.ScreenBounds.Height));
        }
コード例 #7
0
 public AccountController(
     UserManager <UserInfo> userManager,
     SignInManager <UserInfo> signInManager,
     IJudgeService judgeService,
     WebHostDbContext dbContext,
     IEmailSender emailSender)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.judgeService  = judgeService;
     this.emailSender   = emailSender;
 }
コード例 #8
0
ファイル: JudgeController.cs プロジェクト: jangocheng/H-Judge
 public JudgeController(IJudgeService judgeService, IProblemService problemService,
                        IContestService contestService, IGroupService groupService, CachedUserManager <UserInfo> userManager,
                        ILanguageService languageService, WebHostDbContext dbContext)
 {
     this.judgeService    = judgeService;
     this.problemService  = problemService;
     this.contestService  = contestService;
     this.groupService    = groupService;
     this.userManager     = userManager;
     this.languageService = languageService;
     this.dbContext       = dbContext;
 }
コード例 #9
0
 public AccountController(
     UserManager <UserInfo> userManager,
     SignInManager <UserInfo> signInManager,
     IJudgeService judgeService,
     WebHostDbContext dbContext,
     IEmailSender emailSender)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.judgeService  = judgeService;
     this.emailSender   = emailSender;
     dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
 }
コード例 #10
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public ExamController(
     IExamService examService,
     IQuestionService questionService,
     IStuanswerdetailService stuanswerdetailService,
     ISelectService selectService,
     IJudgeService judgeService,
     IStuscoreService stuscoreService)
 {
     _examService            = examService;
     _questionService        = questionService;
     _stuanswerdetailService = stuanswerdetailService;
     _selectService          = selectService;
     _judgeService           = judgeService;
     _stuscoreService        = stuscoreService;
 }
コード例 #11
0
 public ProblemController(
     UserManager <UserInfo> userManager,
     IProblemService problemService,
     IContestService contestService,
     IJudgeService judgeService,
     ILanguageService languageService,
     IFileService fileService,
     IVoteService voteService,
     WebHostDbContext dbContext)
 {
     this.userManager     = userManager;
     this.problemService  = problemService;
     this.contestService  = contestService;
     this.judgeService    = judgeService;
     this.languageService = languageService;
     this.fileService     = fileService;
     this.voteService     = voteService;
     this.dbContext       = dbContext;
 }
コード例 #12
0
 public ScheduleService(IJudgeService judgeService)
 {
     this.judgeService = judgeService;
 }
コード例 #13
0
 public StatisticsController(IJudgeService judgeService, CachedUserManager <UserInfo> userManager)
 {
     this.judgeService = judgeService;
     this.userManager  = userManager;
 }
コード例 #14
0
 public JudgeController(IJudgeService judgeService)
 {
     _judgeService = judgeService;
 }
コード例 #15
0
ファイル: CheckService.cs プロジェクト: SilovYan/judge.net
 public CheckService(IJudgeService service, IUnitOfWorkFactory unitOfWorkFactory)
 {
     _service           = service;
     _unitOfWorkFactory = unitOfWorkFactory;
 }
コード例 #16
0
 public JudgesController(IJudgeService judgeService, IMapper mapper)
 {
     _judgeService = judgeService;
     _mapper       = mapper;
 }
コード例 #17
0
 public void Setup()
 {
     this.judgeService = Substitute.For <IJudgeService>();
     this.service      = new ScheduleService(this.judgeService);
 }
コード例 #18
0
ファイル: CheckService.cs プロジェクト: spaceorc/judge.net
 public CheckService(IJudgeService service, IUnitOfWorkFactory unitOfWorkFactory, ILogger logger)
 {
     _service           = service;
     _unitOfWorkFactory = unitOfWorkFactory;
     this.logger        = logger;
 }
コード例 #19
0
 public WinnersController(IJudgeService judgeService)
 {
     _judgeService = judgeService ?? throw new ArgumentNullException("judgeService");
 }