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