Esempio n. 1
0
 public Call(StrategyType strategy)
 {
     if (strategy == StrategyType.AllUnits)
     {
         this.strategy = new AllUnitsStrategy();
     }
     else
     {
         this.strategy = new OneUnitStrategy();
     }
 }
Esempio n. 2
0
 public CallController(CustomerContext context, ICallStrategy callStrategy)
 {
     _context      = context;
     _callStrategy = callStrategy;
 }