public ContestantCompetitionsController(IMapper mapper, IContestantCompetitionService contestandCompetition,
                                         ICompetitionService competitionService, IContestantService contestantService)
 {
     this.mapper                      = mapper;
     this.competitionService          = competitionService;
     this.contestantService           = contestantService;
     this.contestantCompetitionServis = contestandCompetition;
 }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
 public ContestantController()
 {
     _Service                 = new ContestantService();
     _DistrictService         = new DistrictService();
     _ContestantRatingService = new ContestantRatingService();
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 7
0
 public StatsController(IContestantService contestantService)
 {
     this.contestantService = contestantService ?? throw new ArgumentNullException(nameof(contestantService));
 }
Exemplo n.º 8
0
 public ContestantRatingController()
 {
     _Service           = new ContestantRatingService();
     _ContestantService = new ContestantService();
 }
 public ContestantsController(IMapper mapper, IContestantService contestantService)
 {
     this.mapper            = mapper;
     this.contestantService = contestantService;
 }
Exemplo n.º 10
0
 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));
 }