Example #1
0
        public void TestCreateStrategyObject()
        {
            IStrategyAssemblyMgr strategyMgr = GetStrategyMgr();
            IStrategyAssembly    assembly1   = strategyMgr.GetStrategyAssembly(assemblyName1);
            IStrategy            strategy_ma = assembly1.CreateStrategy(STRATEGY_MA);

            AssertMockStrategy_Ma_Object1(strategy_ma);

            IStrategyAssembly assembly2    = strategyMgr.GetStrategyAssembly(assemblyName2);
            IStrategy         strategy_ma2 = assembly2.CreateStrategy(STRATEGY_MA);

            AssertMockStrategy_Ma_Object2(strategy_ma2);
        }
Example #2
0
 public IStrategy CreateStrategy()
 {
     return(strategyAssembly.CreateStrategy(this.ClassName));
 }