public void SetStrategyB(IStrategyB strategyB) { System.Console.WriteLine("Changing Strategy B Logic"); this._strategyB = strategyB; }
public Context(IStrategyA strategyA, IStrategyB strategyB) { this._strategyA = strategyA; this._strategyB = strategyB; }
public Consumer(IStrategyA strategyA, IStrategyB strategyB) { StrategyA = strategyA ?? throw new ArgumentNullException(nameof(strategyA)); StrategyB = strategyB ?? throw new ArgumentNullException(nameof(strategyB)); }