public ContestantCompetitionsController(IMapper mapper, IContestantCompetitionService contestandCompetition, ICompetitionService competitionService, IContestantService contestantService) { this.mapper = mapper; this.competitionService = competitionService; this.contestantService = contestantService; this.contestantCompetitionServis = contestandCompetition; }
public void Setup() { gameService = new Mock <IGameService>(); timeServiceMock = new Mock <ITimeService>(); contestantService = new InMemoryContestantService(gameService.Object, timeServiceMock.Object); timeServiceMock.Setup(m => m.Now()).Returns(time1); contestant1 = new Contestant("Contestant1", "1234", timeServiceMock.Object.Now(), 0); contestantService.AddContestant(contestant1); updateController = new UpdateController(contestantService, timeServiceMock.Object, new GameService()); }
public ContestantController() { _Service = new ContestantService(); _DistrictService = new DistrictService(); _ContestantRatingService = new ContestantRatingService(); }
public RegisterController(IContestantService contestantService, ITimeService timeService) { this.contestantService = contestantService ?? throw new ArgumentNullException(nameof(contestantService)); this.timeService = timeService ?? throw new ArgumentNullException(nameof(timeService)); }
public GalleryController() { _Service = new ContestantService(); }
public MapController() { _ContestantService = new ContestantService(); }
public StatsController(IContestantService contestantService) { this.contestantService = contestantService ?? throw new ArgumentNullException(nameof(contestantService)); }
public ContestantRatingController() { _Service = new ContestantRatingService(); _ContestantService = new ContestantService(); }
public ContestantsController(IMapper mapper, IContestantService contestantService) { this.mapper = mapper; this.contestantService = contestantService; }
public UpdateController(IContestantService contestantService, ITimeService timeService, IGameService gameService) { this.contestantService = contestantService ?? throw new ArgumentNullException(nameof(contestantService)); this.timeService = timeService ?? throw new ArgumentNullException(nameof(timeService)); this.gameService = gameService ?? throw new ArgumentNullException(nameof(gameService)); }