예제 #1
0
 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)
     };
 }
예제 #2
0
 public void Test_Initialize()
 {
     mConfig = new TestConfig {
         HighWinningTreshold = 1000
     };
 }
예제 #3
0
 public void Test_Initialize()
 {
     mConfig = new TestConfig {
         HighWinRateThreshold = 0.6
     };
 }
예제 #4
0
 public void Test_Initialize()
 {
     mConfig = new TestConfig {
         HighStakeMultiplierThreshold = 10
     };
 }