public void SetUp() { _geneticAlgorithmMock = new Mock<IGeneticAlgorithm<FitTeam, IList<Player>>>(); _topPopulation = new List<FitTeam>{new FitTeam()}; _geneticAlgorithmMock.Setup(x => x.Run()).Returns(_topPopulation); _selectorStrategy = new InitialTeamSelectorStrategy(new Mock<ILogger>().Object, _geneticAlgorithmMock.Object); }
public ComplexStrategy(ILogger logger, IInitialTeamSelectorStrategy initialTeamSelectorStrategy, IPlayerScorePredictor playerScorePredictor, ITeamGameweekSelector teamGameweekSelector, ITransferSelectorStrategy transferSelectorStrategy) { _logger = logger; _initialTeamSelectorStrategy = initialTeamSelectorStrategy; _playerScorePredictor = playerScorePredictor; _teamGameweekSelector = teamGameweekSelector; _transferSelectorStrategy = transferSelectorStrategy; _logger.Log(Tag.Strategy, "Using Complex strategy"); }