public PlayerGenerator() { _personNameGenerator = new PersonNameGenerator(); _profileScoreCalculator = new ProfileScoreCalculator(); _numberRandomizer = new NumberRandomizer(); _listRandomizer = new ListRandomizer(); _positionDeterminator = new PositionDeterminator(); var repositoryFactory = new RepositoryFactory(); using (var lineRepository = repositoryFactory.CreateLineRepository()) { _lines = lineRepository.GetAll(); } using (var positionRepository = repositoryFactory.CreatePositionRepository()) { _positions = positionRepository.GetAll(); } using (var playerProfileRepository = repositoryFactory.CreatePlayerProfileRepository()) { _playerProfiles = playerProfileRepository.GetAll(); } }
protected ServiceBase(Game game) { Game = game; NumberRandomizer = new NumberRandomizer(); ListRandomizer = new ListRandomizer(); ServiceFactory = new ServiceFactory(); }
public FriendlyManagerBase(IRandomizer randomizer, INumberRandomizer numberRandomizer) { _randomizer = randomizer; _numberRandomizer = numberRandomizer; using (var competitionRepository = new RepositoryFactory().CreateCompetitionRepository()) { _competition = competitionRepository.GetFriendly(); } }
internal PlayerGenerator() { _personNameGenerator = new PersonNameGenerator(); _profileScoreCalculator = new ProfileScoreCalculator(); _numberRandomizer = new NumberRandomizer(); _listRandomizer = new ListRandomizer(); _positionDeterminator = new PositionDeterminator(); using (var lineRepository = new RepositoryFactory().CreateLineRepository()) { _lines = lineRepository.GetAll(); } using (var positionRepository = new RepositoryFactory().CreatePositionRepository()) { _positions = positionRepository.GetAll(); } using (var playerProfileRepository = new RepositoryFactory().CreatePlayerProfileRepository()) { _playerProfiles = playerProfileRepository.GetAll(); } }
public PersonNameGenerator() { _nameRepository = new RepositoryFactory().CreateNameRepository(); _numberRandomizer = new NumberRandomizer(); }
public PreSeasonFriendlyManager(IRandomizer randomizer, INumberRandomizer numberRandomizer) : base(randomizer, numberRandomizer) { }
public MatchDateManager(int startYear) { _numberRandomizer = new NumberRandomizer(); _startYear = startYear; }
public MatchDateManager(int seasonNr) { _numberRandomizer = new NumberRandomizer(); _seasonNr = seasonNr; }
protected ServiceBase() { NumberRandomizer = new NumberRandomizer(); ListRandomizer = new ListRandomizer(); ServiceFactory = new ServiceFactory(); }
public DuringSeasonFriendlyManager(IRepositoryFactory repositoryFactory, IRandomizer randomizer, INumberRandomizer numberRandomizer) : base(randomizer, numberRandomizer) { _repositoryFactory = repositoryFactory; }