public void UsageMethod() { StrategyContext context; context = new StrategyContext(new ConcreteStrategyA()); context.ContextInterface(); context = new StrategyContext(new ConcreteStrategyB()); context.ContextInterface(); context = new StrategyContext(new ConcreteStrategyC()); context.ContextInterface(); }
public void UsageMethod() { StrategyContext context; context = new StrategyContext(new ConcreteStrategyA()); context.ContextInterface(); context = new StrategyContext(new ConcreteStrategyB()); context.ContextInterface(); context = new StrategyContext(new ConcreteStrategyC()); context.ContextInterface(); }