コード例 #1
0
 public void BeforeEachTest()
 {
     this.twoDimensionalArrayAndConditionStrategy = new TwoDimensionalArrayAndConditionStrategy();
 }
コード例 #2
0
 public void BeforeEachTest()
 {
     this.dictionaryStrategy = new DictionaryStrategy();
 }
コード例 #3
0
 public void BeforeEachTest()
 {
     this.stringBuilderStrategy = new StringBuilderStrategy();
 }
コード例 #4
0
 public void SetStrategy(IDecodeStrategy strategy)
 {
     this.decodeStrategy = strategy;
 }
コード例 #5
0
 // 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;
 }
コード例 #6
0
 public void BeforeEachTest()
 {
     this.loopStrategy = new LoopStrategy();
 }
コード例 #7
0
 public void BeforeEachTest()
 {
     this.stringStrategy = new StringStrategy();
     this.context        = new Decoder(this.stringStrategy);
 }