public RiskStrategyRunner(ITechChallengeConfig config) { //TODO: This could be refactored to have the strategy list injected if multiple instances/configurations were required. mRiskStrategies = new List <IRiskStrategy> { new HighWinRate(config.HighWinRateThreshold), new UnsettledHighWinRate(config.HighWinRateThreshold), new UnsettledHighStakeBets(config.HighStakeMultiplierThreshold), new HighStakeBets(config.StakeMultiplierThreshold), new HighWinnings(config.HighWinningTreshold) }; }
public void Test_Initialize() { mConfig = new TestConfig { HighWinningTreshold = 1000 }; }
public void Test_Initialize() { mConfig = new TestConfig { HighWinRateThreshold = 0.6 }; }
public void Test_Initialize() { mConfig = new TestConfig { HighStakeMultiplierThreshold = 10 }; }