public void BeforeEachTest() { this.twoDimensionalArrayAndConditionStrategy = new TwoDimensionalArrayAndConditionStrategy(); }
public void BeforeEachTest() { this.dictionaryStrategy = new DictionaryStrategy(); }
public void BeforeEachTest() { this.stringBuilderStrategy = new StringBuilderStrategy(); }
public void SetStrategy(IDecodeStrategy strategy) { this.decodeStrategy = strategy; }
// Usually, the Context accepts a strategy through the constructor, but // also provides a setter to change it at runtime. public Decoder(IDecodeStrategy strategy) { this.decodeStrategy = strategy; }
public void BeforeEachTest() { this.loopStrategy = new LoopStrategy(); }
public void BeforeEachTest() { this.stringStrategy = new StringStrategy(); this.context = new Decoder(this.stringStrategy); }