public MatchService(IMatchRepository matchRepository, ITeamRepository teamRepository, IPointsRepository pointsRepository, IUnitOfWork unitOfWork, ITournamentRepository tournamentRepository, IBracketManager bracketManager)
 {
     this.matchRepository      = matchRepository;
     this.teamRepository       = teamRepository;
     this.pointsRepository     = pointsRepository;
     this.unitOfWork           = unitOfWork;
     this.tournamentRepository = tournamentRepository;
     this.bracketManager       = bracketManager;
 }
 public TournamentService(ITournamentRepository tournamentRepository, ITeamRepository teamRepository, ITeamService teamService, IPlayerRepository playerRepository, IUserRepository userRepository, IMatchRepository matchRepository, IDisciplineRepository disciplineRepository, IUnitOfWork unitOfWork, IPointsRepository pointsRepository, IMapper mapper, IBracketManager bracketManager)
 {
     this.tournamentRepository = tournamentRepository;
     this.teamRepository       = teamRepository;
     this.teamService          = teamService;
     this.playerRepository     = playerRepository;
     this.userRepository       = userRepository;
     this.matchRepository      = matchRepository;
     this.disciplineRepository = disciplineRepository;
     this.pointsRepository     = pointsRepository;
     this.unitOfWork           = unitOfWork;
     this.mapper         = mapper;
     this.bracketManager = bracketManager;
 }
Beispiel #3
0
        public TournamentServiceUnitTests()
        {
            tournamentRepositoryMock = new Mock <ITournamentRepository>();
            teamRepositoryMock       = new Mock <ITeamRepository>();
            teamServiceMock          = new Mock <ITeamService>();
            playerRepositoryMock     = new Mock <IPlayerRepository>();
            userRepositoryMock       = new Mock <IUserRepository>();
            matchRepositoryMock      = new Mock <IMatchRepository>();
            disciplineRepositoryMock = new Mock <IDisciplineRepository>();
            pointsRepositoryMock     = new Mock <IPointsRepository>();
            bracketManager           = new BracketManager(new Mapper(new MapperConfiguration(new MapperConfigurationExpression())));
            unitOfWorkMock           = new Mock <IUnitOfWork>();
            mapperMock = new Mock <IMapper>();

            tournamentService = new TournamentService(tournamentRepositoryMock.Object, teamRepositoryMock.Object,
                                                      teamServiceMock.Object, playerRepositoryMock.Object, userRepositoryMock.Object,
                                                      matchRepositoryMock.Object, disciplineRepositoryMock.Object, unitOfWorkMock.Object,
                                                      pointsRepositoryMock.Object, mapperMock.Object, bracketManager);
        }