public FootballPlayerService(IWhoScoredRepository <FootballPlayer> footballPlayerRepository, IUnitOfWork unitOfWork)
 {
     Guard.WhenArgument(footballPlayerRepository, "footballPlayerRepository").IsNull().Throw();
     Guard.WhenArgument(unitOfWork, "unitOfWork").IsNull().Throw();
     this.footballPlayerRepository = footballPlayerRepository;
     this.unitOfWork = unitOfWork;
 }
Beispiel #2
0
        public UserService(IUnitOfWork unitOfWork, IWhoScoredRepository <User> userRepository)
        {
            Guard.WhenArgument(userRepository, "userRepository").IsNull().Throw();
            Guard.WhenArgument(unitOfWork, "unitOfWork").IsNull().Throw();

            this.unitOfWork     = unitOfWork;
            this.userRepository = userRepository;
        }
Beispiel #3
0
        public LeagueService(IWhoScoredRepository <League> leagueRepository, IUnitOfWork unitOfWork)
        {
            Guard.WhenArgument(leagueRepository, "leagueRepository").IsNull().Throw();
            Guard.WhenArgument(unitOfWork, "unitOfWork").IsNull().Throw();

            this.leagueRepository = leagueRepository;
            this.unitOfWork       = unitOfWork;
        }
        public TrollPhotoService(IUnitOfWork unitOfWork, IWhoScoredRepository <TrollPhoto> trollPhotoRepository)
        {
            Guard.WhenArgument(unitOfWork, "unitOfWork").IsNull().Throw();
            Guard.WhenArgument(trollPhotoRepository, "trollPhotoRepository").IsNull().Throw();

            this.unitOfWork           = unitOfWork;
            this.trollPhotoRepository = trollPhotoRepository;
        }
        public GameService(IWhoScoredRepository <Game> gameRepository)
        {
            Guard.WhenArgument(gameRepository, "gameRepository").IsNull().Throw();

            this.gameRepository = gameRepository;
        }
        public TeamService(IWhoScoredRepository <Team> teamRepository)
        {
            Guard.WhenArgument(teamRepository, "teamRepository").IsNull().Throw();

            this.teamRepository = teamRepository;
        }
 public CountryService(IWhoScoredRepository <Country> countryRepository)
 {
     Guard.WhenArgument(countryRepository, "countryRepository").IsNull().Throw();
     this.countryRepository = countryRepository;
 }
Beispiel #8
0
        public LeagueTableService(IWhoScoredRepository <LeagueTable> leagueTableRepository)
        {
            Guard.WhenArgument(leagueTableRepository, "leagueTableRepository").IsNull().Throw();

            this.leagueTableRepository = leagueTableRepository;
        }