Example #1
0
 public AdminController(IAdminService adminService, IProblemsService problemsService, IContestsService contestsService, ISecurityService securityService)
 {
     _adminService        = adminService;
     _problemsService     = problemsService;
     _contestsService     = contestsService;
     this.securityService = securityService;
 }
Example #2
0
 public ContestsController(
     IContestsService contestsService,
     IRoomsService roomsService,
     UserManager <ApplicationUser> userManager)
 {
     this.contestsService = contestsService;
     this.roomsService    = roomsService;
     this.userManager     = userManager;
 }
 public QuestionsController(
     IContestsService contestsService,
     IQuestionsService questionsService,
     IAnswersService answersService,
     IRoomsService roomsService,
     UserManager <ApplicationUser> userManager)
 {
     this.questionsService = questionsService;
     this.answersService   = answersService;
     this.roomsService     = roomsService;
     this.userManager      = userManager;
     this.contestsService  = contestsService;
 }
Example #4
0
 public RoomsController(
     IRoomsService roomsService,
     IContestsService contestsService,
     IApplicationSettingsService applicationSettingsService,
     UserManager <ApplicationUser> userManager,
     IHubContext <RoomHub> roomHub)
 {
     this.roomsService               = roomsService;
     this.contestsService            = contestsService;
     this.applicationSettingsService = applicationSettingsService;
     this.userManager = userManager;
     this.roomHub     = roomHub;
 }
        public void SetUp()
        {
            var factory    = MockRepository.GenerateMock <IUnitOfWorkFactory>();
            var unitOfWork = MockRepository.GenerateMock <IUnitOfWork>();

            _contestTaskRepository = MockRepository.GenerateMock <IContestTaskRepository>();
            _submitRepository      = MockRepository.GenerateMock <ISubmitRepository>();
            _contestsRepository    = MockRepository.GenerateMock <IContestsRepository>();
            unitOfWork.Stub(o => o.ContestTaskRepository).Return(_contestTaskRepository);
            unitOfWork.Stub(o => o.SubmitRepository).Return(_submitRepository);
            unitOfWork.Stub(o => o.ContestsRepository).Return(_contestsRepository);

            factory.Stub(o => o.GetUnitOfWork()).Return(unitOfWork);

            _service = new ContestsService(factory);
        }
Example #6
0
 public ContestsController(IPhotoContestData data, IContestsService service)
     : base(data)
 {
     this._picturesService = new PictureService(data);
     this._service         = service;
 }
 public HomeController(IPhotoContestData data, IContestsService service)
     : base(data)
 {
     this.service = service;
 }
Example #8
0
 public HomeController(IPhotoContestData data, IContestsService service)
     : base(data)
 {
     this.service = service;
 }
Example #9
0
 public ContestsController(IContestsService contestsService, ISubmitSolutionService submitSolutionService, ISessionService sessionService)
 {
     _contestsService       = contestsService;
     _submitSolutionService = submitSolutionService;
     _sessionService        = sessionService;
 }
Example #10
0
 public ContestsController(IContestsService contestsService)
 {
     _contestsService = contestsService;
 }
 public ContestsController(IContestsService contestsService, IFilesService filesService)
 {
     _contestsService = contestsService;
     _filesService    = filesService;
 }
Example #12
0
 public AdminController(IAdminService adminService, IProblemsService problemsService, IContestsService contestsService)
 {
     _adminService    = adminService;
     _problemsService = problemsService;
     _contestsService = contestsService;
 }
 public ContestsController(IPhotoContestData data, IContestsService service)
     : base(data)
 {
     this._picturesService = new PictureService(data);
     this._service = service;
 }