public WarController(IMapper mapper, IRankingService rankingService, IWarRepository warRepo, IMatchFactory matchFactory, IMatchRepository matchRepository, IContestantRepository contestantRepository, IUserRepository userRepository, IVoteRepository voteRepository) { _mapper = mapper; _rankingService = rankingService; _warRepo = warRepo; _matchFactory = matchFactory; _matchRepository = matchRepository; _contestantRepository = contestantRepository; _userRepository = userRepository; _voteRepository = voteRepository; }
public ParticipantsController(IContestantRepository contestantRepository) { _contestantRepository = contestantRepository ?? throw new ArgumentNullException("IContestantRepository"); }
internal RandomMatchStrategy(IMatchRepository matchRepository, IContestantRepository contestantRepository, Func <int, int, int> generateRandomNumber) { _matchRepository = matchRepository; _contestantRepository = contestantRepository; _generateRandomNumber = generateRandomNumber; }
public RandomMatchStrategy(IMatchRepository matchRepository, IContestantRepository contestantRepository) : this(matchRepository, contestantRepository, GenerateRandomNumber) { }
public SumDistinctWinsRankingStrategy(IMatchRepository matchRepository, IContestantRepository constestantRepository, IVoteRepository voteRepository) { _matchRepository = matchRepository; _contestantRepository = constestantRepository; _voteRepository = voteRepository; }
public ContestantController() { this._contestantRepository = new MockContestantRepository(); }