public AdminController(IAdminService adminService, IProblemsService problemsService, IContestsService contestsService, ISecurityService securityService) { _adminService = adminService; _problemsService = problemsService; _contestsService = contestsService; this.securityService = securityService; }
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; }
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); }
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; }
public ContestsController(IContestsService contestsService, ISubmitSolutionService submitSolutionService, ISessionService sessionService) { _contestsService = contestsService; _submitSolutionService = submitSolutionService; _sessionService = sessionService; }
public ContestsController(IContestsService contestsService) { _contestsService = contestsService; }
public ContestsController(IContestsService contestsService, IFilesService filesService) { _contestsService = contestsService; _filesService = filesService; }
public AdminController(IAdminService adminService, IProblemsService problemsService, IContestsService contestsService) { _adminService = adminService; _problemsService = problemsService; _contestsService = contestsService; }