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